From 57e28167589fbb8a90c70767c6cd2a3ad0a574ce Mon Sep 17 00:00:00 2001 From: Dong-Ha Kim Date: Mon, 29 Sep 2025 14:01:55 +0200 Subject: [PATCH 1/2] chore: HyperEVM SpokePoolPeriphery deployment --- deploy/consts.ts | 1 + deployments/deployments.json | 3 +- deployments/hyperevm/SpokePoolPeriphery.json | 1607 ++++++++++++++++++ package.json | 2 +- script/utils/constants.json | 3 +- 5 files changed, 1613 insertions(+), 3 deletions(-) create mode 100644 deployments/hyperevm/SpokePoolPeriphery.json diff --git a/deploy/consts.ts b/deploy/consts.ts index 3eee06198..e6b3d27a4 100644 --- a/deploy/consts.ts +++ b/deploy/consts.ts @@ -187,6 +187,7 @@ export const L2_ADDRESS_MAP: { [key: number]: { [contractName: string]: string } [CHAIN_IDs.HYPEREVM]: { cctpV2TokenMessenger: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d", cctpV2MessageTransmitter: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64", + permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3", }, [CHAIN_IDs.PLASMA]: { permit2: "0x000000000022D473030F116dDEE9F6B43aC78BA3", diff --git a/deployments/deployments.json b/deployments/deployments.json index 7ebc0e86d..1b127b9c7 100644 --- a/deployments/deployments.json +++ b/deployments/deployments.json @@ -64,7 +64,8 @@ "999": { "SpokePool": { "address": "0x35E63eA3eb0fb7A3bc543C71FB66412e1F6B0E04", "blockNumber": 13937805 }, "Helios": { "address": "0xd08baaE74D6d2eAb1F3320B2E1a53eeb391ce8e5", "blockNumber": 13934816 }, - "MulticallHandler": { "address": "0x5E7840E06fAcCb6d1c3b5F5E0d1d3d07F2829bba", "blockNumber": 13992522 } + "MulticallHandler": { "address": "0x5E7840E06fAcCb6d1c3b5F5E0d1d3d07F2829bba", "blockNumber": 13992522 }, + "SpokePoolPeriphery": { "address": "0xF1BF00D947267Da5cC63f8c8A60568c59FA31bCb", "blockNumber": 15142204 } }, "137": { "MintableERC1155": { "address": "0xA15a90E7936A2F8B70E181E955760860D133e56B", "blockNumber": 40600414 }, diff --git a/deployments/hyperevm/SpokePoolPeriphery.json b/deployments/hyperevm/SpokePoolPeriphery.json new file mode 100644 index 000000000..beed8ee98 --- /dev/null +++ b/deployments/hyperevm/SpokePoolPeriphery.json @@ -0,0 +1,1607 @@ +{ + "address": "0xF1BF00D947267Da5cC63f8c8A60568c59FA31bCb", + "abi": [ + { + "inputs": [ + { + "internalType": "contract IPermit2", + "name": "_permit2", + "type": "address" + } + ], + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "inputs": [], + "name": "InvalidMinExpectedInputAmount", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidMsgValue", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidNonce", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidShortString", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidSignature", + "type": "error" + }, + { + "inputs": [], + "name": "InvalidSignature", + "type": "error" + }, + { + "inputs": [], + "name": "MinimumExpectedInputAmount", + "type": "error" + }, + { + "inputs": [ + { + "internalType": "string", + "name": "str", + "type": "string" + } + ], + "name": "StringTooLong", + "type": "error" + }, + { + "anonymous": false, + "inputs": [], + "name": "EIP712DomainChanged", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": false, + "internalType": "address", + "name": "exchange", + "type": "address" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "exchangeCalldata", + "type": "bytes" + }, + { + "indexed": true, + "internalType": "address", + "name": "swapToken", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "acrossInputToken", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "swapTokenAmount", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "acrossInputAmount", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "bytes32", + "name": "acrossOutputToken", + "type": "bytes32" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "acrossOutputAmount", + "type": "uint256" + } + ], + "name": "SwapBeforeBridge", + "type": "event" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "spokePool", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "recipient", + "type": "bytes32" + }, + { + "internalType": "address", + "name": "inputToken", + "type": "address" + }, + { + "internalType": "uint256", + "name": "inputAmount", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "outputToken", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "outputAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "destinationChainId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "exclusiveRelayer", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "quoteTimestamp", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "fillDeadline", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "exclusivityParameter", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "message", + "type": "bytes" + } + ], + "name": "depositNative", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "signatureOwner", + "type": "address" + }, + { + "components": [ + { + "components": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.Fees", + "name": "submissionFees", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "inputToken", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "outputToken", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "outputAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "depositor", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "recipient", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "destinationChainId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "exclusiveRelayer", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "quoteTimestamp", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "fillDeadline", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "exclusivityParameter", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "message", + "type": "bytes" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.BaseDepositData", + "name": "baseDepositData", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "inputAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "spokePool", + "type": "address" + }, + { + "internalType": "uint256", + "name": "nonce", + "type": "uint256" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.DepositData", + "name": "depositData", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "validAfter", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "validBefore", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "receiveWithAuthSignature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "depositDataSignature", + "type": "bytes" + } + ], + "name": "depositWithAuthorization", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "signatureOwner", + "type": "address" + }, + { + "components": [ + { + "components": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.Fees", + "name": "submissionFees", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "inputToken", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "outputToken", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "outputAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "depositor", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "recipient", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "destinationChainId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "exclusiveRelayer", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "quoteTimestamp", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "fillDeadline", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "exclusivityParameter", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "message", + "type": "bytes" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.BaseDepositData", + "name": "baseDepositData", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "inputAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "spokePool", + "type": "address" + }, + { + "internalType": "uint256", + "name": "nonce", + "type": "uint256" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.DepositData", + "name": "depositData", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "permitSignature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "depositDataSignature", + "type": "bytes" + } + ], + "name": "depositWithPermit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "signatureOwner", + "type": "address" + }, + { + "components": [ + { + "components": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.Fees", + "name": "submissionFees", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "inputToken", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "outputToken", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "outputAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "depositor", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "recipient", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "destinationChainId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "exclusiveRelayer", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "quoteTimestamp", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "fillDeadline", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "exclusivityParameter", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "message", + "type": "bytes" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.BaseDepositData", + "name": "baseDepositData", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "inputAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "spokePool", + "type": "address" + }, + { + "internalType": "uint256", + "name": "nonce", + "type": "uint256" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.DepositData", + "name": "depositData", + "type": "tuple" + }, + { + "components": [ + { + "components": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "internalType": "struct IPermit2.TokenPermissions", + "name": "permitted", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "nonce", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "internalType": "struct IPermit2.PermitTransferFrom", + "name": "permit", + "type": "tuple" + }, + { + "internalType": "bytes", + "name": "signature", + "type": "bytes" + } + ], + "name": "depositWithPermit2", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "domainSeparator", + "outputs": [ + { + "internalType": "bytes32", + "name": "", + "type": "bytes32" + } + ], + "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": "bytes[]", + "name": "data", + "type": "bytes[]" + } + ], + "name": "multicall", + "outputs": [ + { + "internalType": "bytes[]", + "name": "results", + "type": "bytes[]" + } + ], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "permit2", + "outputs": [ + { + "internalType": "contract IPermit2", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "name": "permitNonces", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "components": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.Fees", + "name": "submissionFees", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "inputToken", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "outputToken", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "outputAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "depositor", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "recipient", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "destinationChainId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "exclusiveRelayer", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "quoteTimestamp", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "fillDeadline", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "exclusivityParameter", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "message", + "type": "bytes" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.BaseDepositData", + "name": "depositData", + "type": "tuple" + }, + { + "internalType": "address", + "name": "swapToken", + "type": "address" + }, + { + "internalType": "address", + "name": "exchange", + "type": "address" + }, + { + "internalType": "enum SpokePoolPeripheryInterface.TransferType", + "name": "transferType", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "swapTokenAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "minExpectedInputTokenAmount", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "routerCalldata", + "type": "bytes" + }, + { + "internalType": "bool", + "name": "enableProportionalAdjustment", + "type": "bool" + }, + { + "internalType": "address", + "name": "spokePool", + "type": "address" + }, + { + "internalType": "uint256", + "name": "nonce", + "type": "uint256" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.SwapAndDepositData", + "name": "swapAndDepositData", + "type": "tuple" + } + ], + "name": "swapAndBridge", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "signatureOwner", + "type": "address" + }, + { + "components": [ + { + "components": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.Fees", + "name": "submissionFees", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "inputToken", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "outputToken", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "outputAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "depositor", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "recipient", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "destinationChainId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "exclusiveRelayer", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "quoteTimestamp", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "fillDeadline", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "exclusivityParameter", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "message", + "type": "bytes" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.BaseDepositData", + "name": "depositData", + "type": "tuple" + }, + { + "internalType": "address", + "name": "swapToken", + "type": "address" + }, + { + "internalType": "address", + "name": "exchange", + "type": "address" + }, + { + "internalType": "enum SpokePoolPeripheryInterface.TransferType", + "name": "transferType", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "swapTokenAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "minExpectedInputTokenAmount", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "routerCalldata", + "type": "bytes" + }, + { + "internalType": "bool", + "name": "enableProportionalAdjustment", + "type": "bool" + }, + { + "internalType": "address", + "name": "spokePool", + "type": "address" + }, + { + "internalType": "uint256", + "name": "nonce", + "type": "uint256" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.SwapAndDepositData", + "name": "swapAndDepositData", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "validAfter", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "validBefore", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "receiveWithAuthSignature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "swapAndDepositDataSignature", + "type": "bytes" + } + ], + "name": "swapAndBridgeWithAuthorization", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "signatureOwner", + "type": "address" + }, + { + "components": [ + { + "components": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.Fees", + "name": "submissionFees", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "inputToken", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "outputToken", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "outputAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "depositor", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "recipient", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "destinationChainId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "exclusiveRelayer", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "quoteTimestamp", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "fillDeadline", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "exclusivityParameter", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "message", + "type": "bytes" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.BaseDepositData", + "name": "depositData", + "type": "tuple" + }, + { + "internalType": "address", + "name": "swapToken", + "type": "address" + }, + { + "internalType": "address", + "name": "exchange", + "type": "address" + }, + { + "internalType": "enum SpokePoolPeripheryInterface.TransferType", + "name": "transferType", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "swapTokenAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "minExpectedInputTokenAmount", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "routerCalldata", + "type": "bytes" + }, + { + "internalType": "bool", + "name": "enableProportionalAdjustment", + "type": "bool" + }, + { + "internalType": "address", + "name": "spokePool", + "type": "address" + }, + { + "internalType": "uint256", + "name": "nonce", + "type": "uint256" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.SwapAndDepositData", + "name": "swapAndDepositData", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "permitSignature", + "type": "bytes" + }, + { + "internalType": "bytes", + "name": "swapAndDepositDataSignature", + "type": "bytes" + } + ], + "name": "swapAndBridgeWithPermit", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "signatureOwner", + "type": "address" + }, + { + "components": [ + { + "components": [ + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "recipient", + "type": "address" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.Fees", + "name": "submissionFees", + "type": "tuple" + }, + { + "components": [ + { + "internalType": "address", + "name": "inputToken", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "outputToken", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "outputAmount", + "type": "uint256" + }, + { + "internalType": "address", + "name": "depositor", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "recipient", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "destinationChainId", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "exclusiveRelayer", + "type": "bytes32" + }, + { + "internalType": "uint32", + "name": "quoteTimestamp", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "fillDeadline", + "type": "uint32" + }, + { + "internalType": "uint32", + "name": "exclusivityParameter", + "type": "uint32" + }, + { + "internalType": "bytes", + "name": "message", + "type": "bytes" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.BaseDepositData", + "name": "depositData", + "type": "tuple" + }, + { + "internalType": "address", + "name": "swapToken", + "type": "address" + }, + { + "internalType": "address", + "name": "exchange", + "type": "address" + }, + { + "internalType": "enum SpokePoolPeripheryInterface.TransferType", + "name": "transferType", + "type": "uint8" + }, + { + "internalType": "uint256", + "name": "swapTokenAmount", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "minExpectedInputTokenAmount", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "routerCalldata", + "type": "bytes" + }, + { + "internalType": "bool", + "name": "enableProportionalAdjustment", + "type": "bool" + }, + { + "internalType": "address", + "name": "spokePool", + "type": "address" + }, + { + "internalType": "uint256", + "name": "nonce", + "type": "uint256" + } + ], + "internalType": "struct SpokePoolPeripheryInterface.SwapAndDepositData", + "name": "swapAndDepositData", + "type": "tuple" + }, + { + "components": [ + { + "components": [ + { + "internalType": "address", + "name": "token", + "type": "address" + }, + { + "internalType": "uint256", + "name": "amount", + "type": "uint256" + } + ], + "internalType": "struct IPermit2.TokenPermissions", + "name": "permitted", + "type": "tuple" + }, + { + "internalType": "uint256", + "name": "nonce", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "deadline", + "type": "uint256" + } + ], + "internalType": "struct IPermit2.PermitTransferFrom", + "name": "permit", + "type": "tuple" + }, + { + "internalType": "bytes", + "name": "signature", + "type": "bytes" + } + ], + "name": "swapAndBridgeWithPermit2", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "swapProxy", + "outputs": [ + { + "internalType": "contract SwapProxy", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" + } + ], + "transactionHash": "0x118f4b6983bd6ed1147a2165c6d59fe3a254920e0466b2ccf60b49e2f9bff9d2", + "receipt": { + "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C", + "from": "0x9A8f92a830A5cB89a3816e3D267CB7791c16b04D", + "contractAddress": null, + "transactionIndex": 0, + "gasUsed": "3679741", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xd77e45c0376d25e8a280b27b192e72ef8098d67e719c63160af4c88f368fa8cd", + "transactionHash": "0x118f4b6983bd6ed1147a2165c6d59fe3a254920e0466b2ccf60b49e2f9bff9d2", + "logs": [], + "blockNumber": 15142204, + "cumulativeGasUsed": "3679741", + "status": 1, + "byzantium": true + }, + "args": ["0x000000000022D473030F116dDEE9F6B43aC78BA3"], + "numDeployments": 1, + "solcInputHash": "7dab22b548cd07fcdd422cbde549b35c", + "metadata": "{\"compiler\":{\"version\":\"0.8.23+commit.f704f362\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract IPermit2\",\"name\":\"_permit2\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"InvalidMinExpectedInputAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidMsgValue\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidNonce\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidShortString\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MinimumExpectedInputAmount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"str\",\"type\":\"string\"}],\"name\":\"StringTooLong\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"EIP712DomainChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"exchange\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"exchangeCalldata\",\"type\":\"bytes\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"swapToken\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"acrossInputToken\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"swapTokenAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"acrossInputAmount\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"acrossOutputToken\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"acrossOutputAmount\",\"type\":\"uint256\"}],\"name\":\"SwapBeforeBridge\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spokePool\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"recipient\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"inputToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"inputAmount\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"outputToken\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"outputAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"exclusiveRelayer\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"quoteTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"fillDeadline\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"exclusivityParameter\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"name\":\"depositNative\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signatureOwner\",\"type\":\"address\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.Fees\",\"name\":\"submissionFees\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"inputToken\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"outputToken\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"outputAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"depositor\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"recipient\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"exclusiveRelayer\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"quoteTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"fillDeadline\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"exclusivityParameter\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.BaseDepositData\",\"name\":\"baseDepositData\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"inputAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spokePool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.DepositData\",\"name\":\"depositData\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"validAfter\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"validBefore\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"receiveWithAuthSignature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"depositDataSignature\",\"type\":\"bytes\"}],\"name\":\"depositWithAuthorization\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signatureOwner\",\"type\":\"address\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.Fees\",\"name\":\"submissionFees\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"inputToken\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"outputToken\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"outputAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"depositor\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"recipient\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"exclusiveRelayer\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"quoteTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"fillDeadline\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"exclusivityParameter\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.BaseDepositData\",\"name\":\"baseDepositData\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"inputAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spokePool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.DepositData\",\"name\":\"depositData\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"permitSignature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"depositDataSignature\",\"type\":\"bytes\"}],\"name\":\"depositWithPermit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signatureOwner\",\"type\":\"address\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.Fees\",\"name\":\"submissionFees\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"inputToken\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"outputToken\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"outputAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"depositor\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"recipient\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"exclusiveRelayer\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"quoteTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"fillDeadline\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"exclusivityParameter\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.BaseDepositData\",\"name\":\"baseDepositData\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"inputAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"spokePool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.DepositData\",\"name\":\"depositData\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"struct IPermit2.TokenPermissions\",\"name\":\"permitted\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"internalType\":\"struct IPermit2.PermitTransferFrom\",\"name\":\"permit\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"depositWithPermit2\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"domainSeparator\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"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\":\"bytes[]\",\"name\":\"data\",\"type\":\"bytes[]\"}],\"name\":\"multicall\",\"outputs\":[{\"internalType\":\"bytes[]\",\"name\":\"results\",\"type\":\"bytes[]\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"permit2\",\"outputs\":[{\"internalType\":\"contract IPermit2\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"permitNonces\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.Fees\",\"name\":\"submissionFees\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"inputToken\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"outputToken\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"outputAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"depositor\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"recipient\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"exclusiveRelayer\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"quoteTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"fillDeadline\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"exclusivityParameter\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.BaseDepositData\",\"name\":\"depositData\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"swapToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"exchange\",\"type\":\"address\"},{\"internalType\":\"enum SpokePoolPeripheryInterface.TransferType\",\"name\":\"transferType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"swapTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minExpectedInputTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"routerCalldata\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"enableProportionalAdjustment\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"spokePool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.SwapAndDepositData\",\"name\":\"swapAndDepositData\",\"type\":\"tuple\"}],\"name\":\"swapAndBridge\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signatureOwner\",\"type\":\"address\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.Fees\",\"name\":\"submissionFees\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"inputToken\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"outputToken\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"outputAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"depositor\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"recipient\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"exclusiveRelayer\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"quoteTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"fillDeadline\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"exclusivityParameter\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.BaseDepositData\",\"name\":\"depositData\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"swapToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"exchange\",\"type\":\"address\"},{\"internalType\":\"enum SpokePoolPeripheryInterface.TransferType\",\"name\":\"transferType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"swapTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minExpectedInputTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"routerCalldata\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"enableProportionalAdjustment\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"spokePool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.SwapAndDepositData\",\"name\":\"swapAndDepositData\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"validAfter\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"validBefore\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"receiveWithAuthSignature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"swapAndDepositDataSignature\",\"type\":\"bytes\"}],\"name\":\"swapAndBridgeWithAuthorization\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signatureOwner\",\"type\":\"address\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.Fees\",\"name\":\"submissionFees\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"inputToken\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"outputToken\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"outputAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"depositor\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"recipient\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"exclusiveRelayer\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"quoteTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"fillDeadline\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"exclusivityParameter\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.BaseDepositData\",\"name\":\"depositData\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"swapToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"exchange\",\"type\":\"address\"},{\"internalType\":\"enum SpokePoolPeripheryInterface.TransferType\",\"name\":\"transferType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"swapTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minExpectedInputTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"routerCalldata\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"enableProportionalAdjustment\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"spokePool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.SwapAndDepositData\",\"name\":\"swapAndDepositData\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"permitSignature\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"swapAndDepositDataSignature\",\"type\":\"bytes\"}],\"name\":\"swapAndBridgeWithPermit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"signatureOwner\",\"type\":\"address\"},{\"components\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.Fees\",\"name\":\"submissionFees\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"inputToken\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"outputToken\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"outputAmount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"depositor\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"recipient\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"destinationChainId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"exclusiveRelayer\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"quoteTimestamp\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"fillDeadline\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"exclusivityParameter\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"message\",\"type\":\"bytes\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.BaseDepositData\",\"name\":\"depositData\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"swapToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"exchange\",\"type\":\"address\"},{\"internalType\":\"enum SpokePoolPeripheryInterface.TransferType\",\"name\":\"transferType\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"swapTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minExpectedInputTokenAmount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"routerCalldata\",\"type\":\"bytes\"},{\"internalType\":\"bool\",\"name\":\"enableProportionalAdjustment\",\"type\":\"bool\"},{\"internalType\":\"address\",\"name\":\"spokePool\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"internalType\":\"struct SpokePoolPeripheryInterface.SwapAndDepositData\",\"name\":\"swapAndDepositData\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"struct IPermit2.TokenPermissions\",\"name\":\"permitted\",\"type\":\"tuple\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"internalType\":\"struct IPermit2.PermitTransferFrom\",\"name\":\"permit\",\"type\":\"tuple\"},{\"internalType\":\"bytes\",\"name\":\"signature\",\"type\":\"bytes\"}],\"name\":\"swapAndBridgeWithPermit2\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"swapProxy\",\"outputs\":[{\"internalType\":\"contract SwapProxy\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}],\"devdoc\":{\"custom:security-contact\":\"bugs@across.to\",\"events\":{\"EIP712DomainChanged()\":{\"details\":\"MAY be emitted to signal that the domain could have changed.\"}},\"kind\":\"dev\",\"methods\":{\"constructor\":{\"params\":{\"_permit2\":\"Address of the canonical permit2 contract.\"}},\"depositNative(address,bytes32,address,uint256,bytes32,uint256,uint256,bytes32,uint32,uint32,uint32,bytes)\":{\"details\":\"Protects the caller from losing their ETH (or other native token) by reverting if the SpokePool address they intended to call does not exist on this chain. Because this contract can be deployed at the same address everywhere callers should be protected even if the transaction is submitted to an unintended network. This contract should only be used for native token deposits, as this problem only exists for native tokens.\",\"params\":{\"destinationChainId\":\"Denotes network where user will receive funds from SpokePool by a relayer.\",\"exclusiveRelayer\":\"Address (as bytes32) of the relayer who has exclusive rights to fill this deposit. Can be set to 0x0 if no period is desired. If so, then must set exclusivityParameter to 0.\",\"exclusivityParameter\":\"Timestamp or offset, after which any relayer can fill this deposit. Must set to 0 if exclusiveRelayer is set to 0x0, and vice versa.\",\"fillDeadline\":\"Timestamp after which this deposit can no longer be filled.\",\"inputAmount\":\"Amount of tokens to deposit.\",\"inputToken\":\"Token to lock into this contract to initiate deposit.\",\"message\":\"Arbitrary data that can be used to pass additional information to the recipient along with the tokens. Note: this is intended to be used to pass along instructions for how a contract should use or allocate the tokens.\",\"outputAmount\":\"Amount of tokens to receive on destination chain.\",\"quoteTimestamp\":\"Timestamp used by relayers to compute this deposit's realizedLPFeePct which is paid to LP pool on HubPool.\",\"recipient\":\"Address (as bytes32) to receive funds on destination chain.\"}},\"depositWithAuthorization(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),uint256,address,uint256),uint256,uint256,bytes,bytes)\":{\"details\":\"If `acrossInputToken` does not implement `receiveWithAuthorization` to the specifications of EIP-3009, this call will revert.The nonce for the receiveWithAuthorization signature should match the nonce in the DepositData. This nonce is managed by the ERC-3009 token contract.\",\"params\":{\"depositData\":\"Specifies the Across deposit params to send.\",\"depositDataSignature\":\"The signature against the input depositData encoded as (bytes32 r, bytes32 s, uint8 v).\",\"receiveWithAuthSignature\":\"EIP3009 signature encoded as (bytes32 r, bytes32 s, uint8 v).\",\"signatureOwner\":\"The owner of the EIP3009 signature and depositData signature. Assumed to be the depositor for the Across spoke pool.\",\"validAfter\":\"The unix time after which the `receiveWithAuthorization` signature is valid.\",\"validBefore\":\"The unix time before which the `receiveWithAuthorization` signature is valid.\"}},\"depositWithPermit(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),uint256,address,uint256),uint256,bytes,bytes)\":{\"details\":\"If the token does not implement `permit` to the specifications of EIP-2612, the permit call result will be ignored and the function will continue.If `acrossInputToken` does not implement `permit` to the specifications of EIP-2612, this function will fail.The nonce for the depositData signature must be retrieved from permitNonces(signatureOwner).Design Decision: We use separate nonce tracking for permit-based functions versus receiveWithAuthorization-based functions, which creates a theoretical replay attack that we think is incredibly unlikely because this would require: 1. A token implementing both ERC-2612 and ERC-3009 2. A user using the same nonces for depositWithPermit and for depositWithAuthorization 3. Issuing these signatures within a short amount of time (limited by fillDeadlineBuffer)\",\"params\":{\"deadline\":\"Deadline before which the permit signature is valid.\",\"depositData\":\"Specifies the Across deposit params to send.\",\"depositDataSignature\":\"The signature against the input depositData encoded as (bytes32 r, bytes32 s, uint8 v).\",\"permitSignature\":\"Permit signature encoded as (bytes32 r, bytes32 s, uint8 v).\",\"signatureOwner\":\"The owner of the permit signature and depositData signature. Assumed to be the depositor for the Across spoke pool.\"}},\"depositWithPermit2(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),uint256,address,uint256),((address,uint256),uint256,uint256),bytes)\":{\"details\":\"This function assumes the caller has properly set an allowance for the permit2 contract on this network.This function assumes that the amount of token to be swapped is equal to the amount of the token to be received from permit2.\",\"params\":{\"depositData\":\"Specifies the Across deposit params we'll send after the swap.\",\"permit\":\"The permit data signed over by the owner.\",\"signature\":\"The permit2 signature to verify against the deposit data.\",\"signatureOwner\":\"The owner of the permit2 signature and depositor for the Across spoke pool.\"}},\"eip712Domain()\":{\"details\":\"See {EIP-5267}. _Available since v4.9._\"},\"swapAndBridge(((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),address,address,uint8,uint256,uint256,bytes,bool,address,uint256))\":{\"details\":\"Revert case: When enableProportionalAdjustment is true, the calculation depositData.outputAmount * returnAmount may overflow if the product exceeds 2^256-1, causing immediate transaction revert even when the final division result would fit. This case should be extremely rare as both values would need to be > 1e18 * 1e18. Users will only see a generic failure without explanatory error message.Does not support native tokens as swap output. Only ERC20 tokens can be deposited via this function.\",\"params\":{\"swapAndDepositData\":\"Specifies the data needed to perform a swap on a generic exchange.\"}},\"swapAndBridgeWithAuthorization(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),address,address,uint8,uint256,uint256,bytes,bool,address,uint256),uint256,uint256,bytes,bytes)\":{\"details\":\"Revert case: When enableProportionalAdjustment is true, the calculation depositData.outputAmount * returnAmount may overflow if the product exceeds 2^256-1, causing immediate transaction revert even when the final division result would fit. This case should be extremely rare as both values would need to be > 1e18 * 1e18. Users will only see a generic failure without explanatory error message.Does not support native tokens as swap output. Only ERC20 tokens can be deposited via this function.\",\"params\":{\"receiveWithAuthSignature\":\"EIP3009 signature encoded as (bytes32 r, bytes32 s, uint8 v).\",\"signatureOwner\":\"The owner of the EIP3009 signature and swapAndDepositData signature. Assumed to be the depositor for the Across spoke pool.\",\"swapAndDepositData\":\"Specifies the params we need to perform a swap on a generic exchange.\",\"swapAndDepositDataSignature\":\"The signature against the input swapAndDepositData encoded as (bytes32 r, bytes32 s, uint8 v).\",\"validAfter\":\"The unix time after which the `receiveWithAuthorization` signature is valid.\",\"validBefore\":\"The unix time before which the `receiveWithAuthorization` signature is valid.\"}},\"swapAndBridgeWithPermit(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),address,address,uint8,uint256,uint256,bytes,bool,address,uint256),uint256,bytes,bytes)\":{\"details\":\"Revert case: When enableProportionalAdjustment is true, the calculation depositData.outputAmount * returnAmount may overflow if the product exceeds 2^256-1, causing immediate transaction revert even when the final division result would fit. This case should be extremely rare as both values would need to be > 1e18 * 1e18. Users will only see a generic failure without explanatory error message.Does not support native tokens as swap output. Only ERC20 tokens can be deposited via this function.\",\"params\":{\"deadline\":\"Deadline before which the permit signature is valid.\",\"permitSignature\":\"Permit signature encoded as (bytes32 r, bytes32 s, uint8 v).\",\"signatureOwner\":\"The owner of the permit signature and swapAndDepositData signature. Assumed to be the depositor for the Across spoke pool.\",\"swapAndDepositData\":\"Specifies the params we need to perform a swap on a generic exchange.\",\"swapAndDepositDataSignature\":\"The signature against the input swapAndDepositData encoded as (bytes32 r, bytes32 s, uint8 v).\"}},\"swapAndBridgeWithPermit2(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),address,address,uint8,uint256,uint256,bytes,bool,address,uint256),((address,uint256),uint256,uint256),bytes)\":{\"details\":\"Revert case: When enableProportionalAdjustment is true, the calculation depositData.outputAmount * returnAmount may overflow if the product exceeds 2^256-1, causing immediate transaction revert even when the final division result would fit. This case should be extremely rare as both values would need to be > 1e18 * 1e18. Users will only see a generic failure without explanatory error message.Does not support native tokens as swap output. Only ERC20 tokens can be deposited via this function.\",\"params\":{\"permit\":\"The permit data signed over by the owner.\",\"signature\":\"The permit2 signature to verify against the deposit data.\",\"signatureOwner\":\"The owner of the permit2 signature and depositor for the Across spoke pool.\",\"swapAndDepositData\":\"Specifies the params we need to perform a swap on a generic exchange.\"}}},\"stateVariables\":{\"permitNonces\":{\"params\":{\"user\":\"The user whose nonce to return.\"},\"return\":\"The current permit nonce for the user.\",\"returns\":{\"_0\":\"The current permit nonce for the user.\"}}},\"title\":\"SpokePoolPeriphery\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"constructor\":{\"notice\":\"Construct a new Periphery contract.\"},\"depositNative(address,bytes32,address,uint256,bytes32,uint256,uint256,bytes32,uint32,uint32,uint32,bytes)\":{\"notice\":\"Passthrough function to `depositV3()` on the SpokePool contract for native token deposits.\"},\"depositWithAuthorization(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),uint256,address,uint256),uint256,uint256,bytes,bytes)\":{\"notice\":\"Deposits an EIP-3009 compliant Across input token into the Spoke Pool contract.\"},\"depositWithPermit(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),uint256,address,uint256),uint256,bytes,bytes)\":{\"notice\":\"Deposits an EIP-2612 token Across input token into the Spoke Pool contract.\"},\"depositWithPermit2(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),uint256,address,uint256),((address,uint256),uint256,uint256),bytes)\":{\"notice\":\"Uses permit2 to transfer and submit an Across deposit to the Spoke Pool contract.\"},\"domainSeparator()\":{\"notice\":\"Returns the contract's EIP712 domain separator, used to sign hashed DepositData/SwapAndDepositData types.\"},\"permitNonces(address)\":{\"notice\":\"Returns the current permit nonce for a user.\"},\"swapAndBridge(((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),address,address,uint8,uint256,uint256,bytes,bool,address,uint256))\":{\"notice\":\"Swaps tokens on this chain via specified router before submitting Across deposit atomically. Caller can specify their slippage tolerance for the swap and Across deposit params.\"},\"swapAndBridgeWithAuthorization(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),address,address,uint8,uint256,uint256,bytes,bool,address,uint256),uint256,uint256,bytes,bytes)\":{\"notice\":\"Swaps an EIP-3009 token on this chain via specified router before submitting Across deposit atomically. Caller can specify their slippage tolerance for the swap and Across deposit params.\"},\"swapAndBridgeWithPermit(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),address,address,uint8,uint256,uint256,bytes,bool,address,uint256),uint256,bytes,bytes)\":{\"notice\":\"Swaps an EIP-2612 token on this chain via specified router before submitting Across deposit atomically. Caller can specify their slippage tolerance for the swap and Across deposit params.\"},\"swapAndBridgeWithPermit2(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),address,address,uint8,uint256,uint256,bytes,bool,address,uint256),((address,uint256),uint256,uint256),bytes)\":{\"notice\":\"Uses permit2 to transfer tokens from a user before swapping a token on this chain via specified router and submitting an Across deposit atomically. Caller can specify their slippage tolerance for the swap and Across deposit params.\"}},\"notice\":\"Contract for performing more complex interactions with an Across spoke pool deployment.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/SpokePoolPeriphery.sol\":\"SpokePoolPeriphery\"},\"debug\":{\"revertStrings\":\"strip\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":1000000},\"remappings\":[],\"viaIR\":true},\"sources\":{\"@openzeppelin/contracts/interfaces/IERC1271.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (interfaces/IERC1271.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC1271 standard signature validation method for\\n * contracts as defined in https://eips.ethereum.org/EIPS/eip-1271[ERC-1271].\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC1271 {\\n /**\\n * @dev Should return whether the signature provided is valid for the provided data\\n * @param hash Hash of the data to be signed\\n * @param signature Signature byte array associated with _data\\n */\\n function isValidSignature(bytes32 hash, bytes memory signature) external view returns (bytes4 magicValue);\\n}\\n\",\"keccak256\":\"0x0705a4b1b86d7b0bd8432118f226ba139c44b9dcaba0a6eafba2dd7d0639c544\",\"license\":\"MIT\"},\"@openzeppelin/contracts/interfaces/IERC5267.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC5267.sol)\\n\\npragma solidity ^0.8.0;\\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\",\"keccak256\":\"0xac6c2efc64baccbde4904ae18ed45139c9aa8cff96d6888344d1e4d2eb8b659f\",\"license\":\"MIT\"},\"@openzeppelin/contracts/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n _nonReentrantBefore();\\n _;\\n _nonReentrantAfter();\\n }\\n\\n function _nonReentrantBefore() private {\\n // On the first call to nonReentrant, _status will be _NOT_ENTERED\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n }\\n\\n function _nonReentrantAfter() private {\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Returns true if the reentrancy guard is currently set to \\\"entered\\\", which indicates there is a\\n * `nonReentrant` function in the call stack.\\n */\\n function _reentrancyGuardEntered() internal view returns (bool) {\\n return _status == _ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0xa535a5df777d44e945dd24aa43a11e44b024140fc340ad0dfe42acf4002aade1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface 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 amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(address from, address to, uint256 amount) external returns (bool);\\n}\\n\",\"keccak256\":\"0x287b55befed2961a7eabd7d7b1b2839cbca8a5b80ef8dcbb25ed3d4c2002c305\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in\\n * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].\\n *\\n * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by\\n * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't\\n * need to send a transaction, and thus is not required to hold Ether at all.\\n *\\n * ==== Security Considerations\\n *\\n * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature\\n * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be\\n * considered as an intention to spend the allowance in any specific way. The second is that because permits have\\n * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should\\n * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be\\n * generally recommended is:\\n *\\n * ```solidity\\n * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public {\\n * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {}\\n * doThing(..., value);\\n * }\\n *\\n * function doThing(..., uint256 value) public {\\n * token.safeTransferFrom(msg.sender, address(this), value);\\n * ...\\n * }\\n * ```\\n *\\n * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of\\n * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also\\n * {SafeERC20-safeTransferFrom}).\\n *\\n * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so\\n * contracts should have entry points that don't rely on permit.\\n */\\ninterface IERC20Permit {\\n /**\\n * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,\\n * given ``owner``'s signed approval.\\n *\\n * IMPORTANT: The same issues {IERC20-approve} has related to transaction\\n * ordering also apply here.\\n *\\n * Emits an {Approval} event.\\n *\\n * Requirements:\\n *\\n * - `spender` cannot be the zero address.\\n * - `deadline` must be a timestamp in the future.\\n * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`\\n * over the EIP712-formatted function arguments.\\n * - the signature must use ``owner``'s current nonce (see {nonces}).\\n *\\n * For more information on the signature format, see the\\n * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP\\n * section].\\n *\\n * CAUTION: See Security Considerations above.\\n */\\n function permit(\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n /**\\n * @dev Returns the current nonce for `owner`. This value must be\\n * included whenever a signature is generated for {permit}.\\n *\\n * Every successful call to {permit} increases ``owner``'s nonce by one. This\\n * prevents a signature from being used multiple times.\\n */\\n function nonces(address owner) external view returns (uint256);\\n\\n /**\\n * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.\\n */\\n // solhint-disable-next-line func-name-mixedcase\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0xb264c03a3442eb37a68ad620cefd1182766b58bee6cec40343480392d6b14d69\",\"license\":\"MIT\"},\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\nimport \\\"../extensions/IERC20Permit.sol\\\";\\nimport \\\"../../../utils/Address.sol\\\";\\n\\n/**\\n * @title SafeERC20\\n * @dev Wrappers around ERC20 operations that throw on failure (when the token\\n * contract returns false). Tokens that return no value (and instead revert or\\n * throw on failure) are also supported, non-reverting calls are assumed to be\\n * successful.\\n * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,\\n * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.\\n */\\nlibrary SafeERC20 {\\n using Address for address;\\n\\n /**\\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.encodeWithSelector(token.transfer.selector, 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.encodeWithSelector(token.transferFrom.selector, from, to, value));\\n }\\n\\n /**\\n * @dev Deprecated. This function has issues similar to the ones found in\\n * {IERC20-approve}, and its usage is discouraged.\\n *\\n * Whenever possible, use {safeIncreaseAllowance} and\\n * {safeDecreaseAllowance} instead.\\n */\\n function safeApprove(IERC20 token, address spender, uint256 value) internal {\\n // safeApprove should only be called when setting an initial allowance,\\n // or when resetting it to zero. To increase and decrease it, use\\n // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'\\n require(\\n (value == 0) || (token.allowance(address(this), spender) == 0),\\n \\\"SafeERC20: approve from non-zero to non-zero allowance\\\"\\n );\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));\\n }\\n\\n /**\\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 function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value));\\n }\\n\\n /**\\n * @dev Decrease 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 function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal {\\n unchecked {\\n uint256 oldAllowance = token.allowance(address(this), spender);\\n require(oldAllowance >= value, \\\"SafeERC20: decreased allowance below zero\\\");\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value));\\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 function forceApprove(IERC20 token, address spender, uint256 value) internal {\\n bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value);\\n\\n if (!_callOptionalReturnBool(token, approvalCall)) {\\n _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0));\\n _callOptionalReturn(token, approvalCall);\\n }\\n }\\n\\n /**\\n * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`.\\n * Revert on invalid signature.\\n */\\n function safePermit(\\n IERC20Permit token,\\n address owner,\\n address spender,\\n uint256 value,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal {\\n uint256 nonceBefore = token.nonces(owner);\\n token.permit(owner, spender, value, deadline, v, r, s);\\n uint256 nonceAfter = token.nonces(owner);\\n require(nonceAfter == nonceBefore + 1, \\\"SafeERC20: permit did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by the call.\\n * @param data The call data (encoded using abi.encode or one of its variants).\\n */\\n function _callOptionalReturn(IERC20 token, bytes memory data) private {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that\\n // the target address contains contract code and also asserts for success in the low-level call.\\n\\n bytes memory returndata = address(token).functionCall(data, \\\"SafeERC20: low-level call failed\\\");\\n require(returndata.length == 0 || abi.decode(returndata, (bool)), \\\"SafeERC20: ERC20 operation did not succeed\\\");\\n }\\n\\n /**\\n * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement\\n * on the return value: the return value is optional (but if data is returned, it must not be false).\\n * @param token The token targeted by 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 silents catches all reverts and returns a bool instead.\\n */\\n function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) {\\n // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since\\n // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false\\n // and not revert is the subcall reverts.\\n\\n (bool success, bytes memory returndata) = address(token).call(data);\\n return\\n success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token));\\n }\\n}\\n\",\"keccak256\":\"0xabefac93435967b4d36a4fabcbdbb918d1f0b7ae3c3d85bc30923b326c927ed1\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://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.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x006dd67219697fe68d7fbfdea512e7c4cb64a43565ed86171d67e844982da6fa\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/ShortStrings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/ShortStrings.sol)\\n\\npragma solidity ^0.8.8;\\n\\nimport \\\"./StorageSlot.sol\\\";\\n\\n// | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |\\n// | length | 0x BB |\\ntype ShortString is bytes32;\\n\\n/**\\n * @dev This library provides functions to convert short memory strings\\n * into a `ShortString` type that can be used as an immutable variable.\\n *\\n * Strings of arbitrary length can be optimized using this library if\\n * they are short enough (up to 31 bytes) by packing them with their\\n * length (1 byte) in a single EVM word (32 bytes). Additionally, a\\n * fallback mechanism can be used for every other case.\\n *\\n * Usage example:\\n *\\n * ```solidity\\n * contract Named {\\n * using ShortStrings for *;\\n *\\n * ShortString private immutable _name;\\n * string private _nameFallback;\\n *\\n * constructor(string memory contractName) {\\n * _name = contractName.toShortStringWithFallback(_nameFallback);\\n * }\\n *\\n * function name() external view returns (string memory) {\\n * return _name.toStringWithFallback(_nameFallback);\\n * }\\n * }\\n * ```\\n */\\nlibrary ShortStrings {\\n // Used as an identifier for strings longer than 31 bytes.\\n bytes32 private constant _FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;\\n\\n error StringTooLong(string str);\\n error InvalidShortString();\\n\\n /**\\n * @dev Encode a string of at most 31 chars into a `ShortString`.\\n *\\n * This will trigger a `StringTooLong` error is the input string is too long.\\n */\\n function toShortString(string memory str) internal pure returns (ShortString) {\\n bytes memory bstr = bytes(str);\\n if (bstr.length > 31) {\\n revert StringTooLong(str);\\n }\\n return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));\\n }\\n\\n /**\\n * @dev Decode a `ShortString` back to a \\\"normal\\\" string.\\n */\\n function toString(ShortString sstr) internal pure returns (string memory) {\\n uint256 len = byteLength(sstr);\\n // using `new string(len)` would work locally but is not memory safe.\\n string memory str = new string(32);\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(str, len)\\n mstore(add(str, 0x20), sstr)\\n }\\n return str;\\n }\\n\\n /**\\n * @dev Return the length of a `ShortString`.\\n */\\n function byteLength(ShortString sstr) internal pure returns (uint256) {\\n uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;\\n if (result > 31) {\\n revert InvalidShortString();\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Encode a string into a `ShortString`, or write it to storage if it is too long.\\n */\\n function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {\\n if (bytes(value).length < 32) {\\n return toShortString(value);\\n } else {\\n StorageSlot.getStringSlot(store).value = value;\\n return ShortString.wrap(_FALLBACK_SENTINEL);\\n }\\n }\\n\\n /**\\n * @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.\\n */\\n function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {\\n if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {\\n return toString(value);\\n } else {\\n return store;\\n }\\n }\\n\\n /**\\n * @dev Return the length of a string that was encoded to `ShortString` or written to storage using {setWithFallback}.\\n *\\n * WARNING: This will return the \\\"byte length\\\" of the string. This may not reflect the actual length in terms of\\n * actual characters as the UTF-8 encoding of a single character can span over multiple bytes.\\n */\\n function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {\\n if (ShortString.unwrap(value) != _FALLBACK_SENTINEL) {\\n return byteLength(value);\\n } else {\\n return bytes(store).length;\\n }\\n }\\n}\\n\",\"keccak256\":\"0xc0e310c163edf15db45d4ff938113ab357f94fa86e61ea8e790853c4d2e13256\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```solidity\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, `uint256`._\\n * _Available since v4.9 for `string`, `bytes`._\\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 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 /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `StringSlot` with member `value` located at `slot`.\\n */\\n function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\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 /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BytesSlot` with member `value` located at `slot`.\\n */\\n function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\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 /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := store.slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf09e68aa0dc6722a25bc46490e8d48ed864466d17313b8a0b254c36b54e49899\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/Math.sol\\\";\\nimport \\\"./math/SignedMath.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n unchecked {\\n uint256 length = Math.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\n }\\n\\n /**\\n * @dev Converts a `int256` to its ASCII `string` decimal representation.\\n */\\n function toString(int256 value) internal pure returns (string memory) {\\n return string(abi.encodePacked(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 bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n\\n /**\\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 keccak256(bytes(a)) == keccak256(bytes(b));\\n }\\n}\\n\",\"keccak256\":\"0x3088eb2868e8d13d89d16670b5f8612c4ab9ff8956272837d8e90106c59c14a0\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n 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 /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(bytes32 hash, bytes32 r, bytes32 vs) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32 message) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore(0x00, \\\"\\\\x19Ethereum Signed Message:\\\\n32\\\")\\n mstore(0x1c, hash)\\n message := keccak256(0x00, 0x3c)\\n }\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, \\\"\\\\x19\\\\x01\\\")\\n mstore(add(ptr, 0x02), domainSeparator)\\n mstore(add(ptr, 0x22), structHash)\\n data := keccak256(ptr, 0x42)\\n }\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Data with intended validator, created from a\\n * `validator` and `data` according to the version 0 of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x00\\\", validator, data));\\n }\\n}\\n\",\"keccak256\":\"0x809bc3edb4bcbef8263fa616c1b60ee0004b50a8a1bfa164d8f57fd31f520c58\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/cryptography/EIP712.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/EIP712.sol)\\n\\npragma solidity ^0.8.8;\\n\\nimport \\\"./ECDSA.sol\\\";\\nimport \\\"../ShortStrings.sol\\\";\\nimport \\\"../../interfaces/IERC5267.sol\\\";\\n\\n/**\\n * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.\\n *\\n * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,\\n * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding\\n * they need in their contracts using a combination of `abi.encode` and `keccak256`.\\n *\\n * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding\\n * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA\\n * ({_hashTypedDataV4}).\\n *\\n * The implementation of the domain separator was designed to be as efficient as possible while still properly updating\\n * the chain id to protect against replay attacks on an eventual fork of the chain.\\n *\\n * NOTE: This contract implements the version of the encoding known as \\\"v4\\\", as implemented by the JSON RPC method\\n * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].\\n *\\n * NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain\\n * separator of the implementation contract. This will cause the `_domainSeparatorV4` function to always rebuild the\\n * separator from the immutable values, which is cheaper than accessing a cached version in cold storage.\\n *\\n * _Available since v3.4._\\n *\\n * @custom:oz-upgrades-unsafe-allow state-variable-immutable state-variable-assignment\\n */\\nabstract contract EIP712 is IERC5267 {\\n using ShortStrings for *;\\n\\n bytes32 private constant _TYPE_HASH =\\n keccak256(\\\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\\\");\\n\\n // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to\\n // invalidate the cached domain separator if the chain id changes.\\n bytes32 private immutable _cachedDomainSeparator;\\n uint256 private immutable _cachedChainId;\\n address private immutable _cachedThis;\\n\\n bytes32 private immutable _hashedName;\\n bytes32 private immutable _hashedVersion;\\n\\n ShortString private immutable _name;\\n ShortString private immutable _version;\\n string private _nameFallback;\\n string private _versionFallback;\\n\\n /**\\n * @dev Initializes the domain separator and parameter caches.\\n *\\n * The meaning of `name` and `version` is specified in\\n * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:\\n *\\n * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.\\n * - `version`: the current major version of the signing domain.\\n *\\n * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart\\n * contract upgrade].\\n */\\n constructor(string memory name, string memory version) {\\n _name = name.toShortStringWithFallback(_nameFallback);\\n _version = version.toShortStringWithFallback(_versionFallback);\\n _hashedName = keccak256(bytes(name));\\n _hashedVersion = keccak256(bytes(version));\\n\\n _cachedChainId = block.chainid;\\n _cachedDomainSeparator = _buildDomainSeparator();\\n _cachedThis = address(this);\\n }\\n\\n /**\\n * @dev Returns the domain separator for the current chain.\\n */\\n function _domainSeparatorV4() internal view returns (bytes32) {\\n if (address(this) == _cachedThis && block.chainid == _cachedChainId) {\\n return _cachedDomainSeparator;\\n } else {\\n return _buildDomainSeparator();\\n }\\n }\\n\\n function _buildDomainSeparator() private view returns (bytes32) {\\n return keccak256(abi.encode(_TYPE_HASH, _hashedName, _hashedVersion, block.chainid, address(this)));\\n }\\n\\n /**\\n * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this\\n * function returns the hash of the fully encoded EIP712 message for this domain.\\n *\\n * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:\\n *\\n * ```solidity\\n * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(\\n * keccak256(\\\"Mail(address to,string contents)\\\"),\\n * mailTo,\\n * keccak256(bytes(mailContents))\\n * )));\\n * address signer = ECDSA.recover(digest, signature);\\n * ```\\n */\\n function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {\\n return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);\\n }\\n\\n /**\\n * @dev See {EIP-5267}.\\n *\\n * _Available since v4.9._\\n */\\n function eip712Domain()\\n public\\n view\\n virtual\\n override\\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 return (\\n hex\\\"0f\\\", // 01111\\n _name.toStringWithFallback(_nameFallback),\\n _version.toStringWithFallback(_versionFallback),\\n block.chainid,\\n address(this),\\n bytes32(0),\\n new uint256[](0)\\n );\\n }\\n}\\n\",\"keccak256\":\"0x8432884527a7ad91e6eed1cfc5a0811ae2073e5bca107bd0ca442e9236b03dbd\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/SignatureChecker.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ECDSA.sol\\\";\\nimport \\\"../../interfaces/IERC1271.sol\\\";\\n\\n/**\\n * @dev Signature verification helper that can be used instead of `ECDSA.recover` to seamlessly support both ECDSA\\n * signatures from externally owned accounts (EOAs) as well as ERC1271 signatures from smart contract wallets like\\n * Argent and Gnosis Safe.\\n *\\n * _Available since v4.1._\\n */\\nlibrary SignatureChecker {\\n /**\\n * @dev Checks if a signature is valid for a given signer and data hash. If the signer is a smart contract, the\\n * signature is validated against that smart contract using ERC1271, otherwise it's validated using `ECDSA.recover`.\\n *\\n * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus\\n * change through time. It could return true at block N and false at block N+1 (or the opposite).\\n */\\n function isValidSignatureNow(address signer, bytes32 hash, bytes memory signature) internal view returns (bool) {\\n (address recovered, ECDSA.RecoverError error) = ECDSA.tryRecover(hash, signature);\\n return\\n (error == ECDSA.RecoverError.NoError && recovered == signer) ||\\n isValidERC1271SignatureNow(signer, hash, signature);\\n }\\n\\n /**\\n * @dev Checks if a signature is valid for a given signer and data hash. The signature is validated\\n * against the signer smart contract using ERC1271.\\n *\\n * NOTE: Unlike ECDSA signatures, contract signatures are revocable, and the outcome of this function can thus\\n * change through time. It could return true at block N and false at block N+1 (or the opposite).\\n */\\n function isValidERC1271SignatureNow(\\n address signer,\\n bytes32 hash,\\n bytes memory signature\\n ) internal view returns (bool) {\\n (bool success, bytes memory result) = signer.staticcall(\\n abi.encodeWithSelector(IERC1271.isValidSignature.selector, hash, signature)\\n );\\n return (success &&\\n result.length >= 32 &&\\n abi.decode(result, (bytes32)) == bytes32(IERC1271.isValidSignature.selector));\\n }\\n}\\n\",\"keccak256\":\"0x3af3ca86df39aac39a0514c84459d691434a108d2151c8ce9d69f32e315cab80\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/Math.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary Math {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n // 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 prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1, \\\"Math: mulDiv overflow\\\");\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10 ** 64) {\\n value /= 10 ** 64;\\n result += 64;\\n }\\n if (value >= 10 ** 32) {\\n value /= 10 ** 32;\\n result += 32;\\n }\\n if (value >= 10 ** 16) {\\n value /= 10 ** 16;\\n result += 16;\\n }\\n if (value >= 10 ** 8) {\\n value /= 10 ** 8;\\n result += 8;\\n }\\n if (value >= 10 ** 4) {\\n value /= 10 ** 4;\\n result += 4;\\n }\\n if (value >= 10 ** 2) {\\n value /= 10 ** 2;\\n result += 2;\\n }\\n if (value >= 10 ** 1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 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 + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xe4455ac1eb7fc497bb7402579e7b4d64d928b846fce7d2b6fde06d366f21c2b3\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/math/SignedMath.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard signed math utilities missing in the Solidity language.\\n */\\nlibrary SignedMath {\\n /**\\n * @dev Returns the largest of two signed numbers.\\n */\\n function max(int256 a, int256 b) internal pure returns (int256) {\\n return 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 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 // must be unchecked in order to support `n = type(int256).min`\\n return uint256(n >= 0 ? n : -n);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf92515413956f529d95977adc9b0567d583c6203fc31ab1c23824c35187e3ddc\",\"license\":\"MIT\"},\"@uma/core/contracts/common/implementation/MultiCaller.sol\":{\"content\":\"// SPDX-License-Identifier: AGPL-3.0-only\\npragma solidity ^0.8.0;\\n\\n// This contract is taken from Uniswap's multi call implementation (https://github.com/Uniswap/uniswap-v3-periphery/blob/main/contracts/base/Multicall.sol)\\n// and was modified to be solidity 0.8 compatible. Additionally, the method was restricted to only work with msg.value\\n// set to 0 to avoid any nasty attack vectors on function calls that use value sent with deposits.\\n\\n/// @title MultiCaller\\n/// @notice Enables calling multiple methods in a single call to the contract\\ncontract MultiCaller {\\n function multicall(bytes[] calldata data) external returns (bytes[] memory results) {\\n results = new bytes[](data.length);\\n for (uint256 i = 0; i < data.length; i++) {\\n (bool success, bytes memory result) = address(this).delegatecall(data[i]);\\n\\n if (!success) {\\n // Next 5 lines from https://ethereum.stackexchange.com/a/83577\\n if (result.length < 68) revert();\\n assembly {\\n result := add(result, 0x04)\\n }\\n revert(abi.decode(result, (string)));\\n }\\n\\n results[i] = result;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x9f6afe5bafc5e16fe8d63010a740ec3a88a9f00a7236ea7e5b039a2f50eb346e\",\"license\":\"AGPL-3.0-only\"},\"contracts/SpokePoolPeriphery.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-or-later\\npragma solidity ^0.8.0;\\n\\nimport { IERC20 } from \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport { SafeERC20 } from \\\"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\\\";\\nimport { IERC20Permit } from \\\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol\\\";\\nimport { Address } from \\\"@openzeppelin/contracts/utils/Address.sol\\\";\\nimport { MultiCaller } from \\\"@uma/core/contracts/common/implementation/MultiCaller.sol\\\";\\nimport { ReentrancyGuard } from \\\"@openzeppelin/contracts/security/ReentrancyGuard.sol\\\";\\nimport { SignatureChecker } from \\\"@openzeppelin/contracts/utils/cryptography/SignatureChecker.sol\\\";\\nimport { EIP712 } from \\\"@openzeppelin/contracts/utils/cryptography/EIP712.sol\\\";\\nimport { V3SpokePoolInterface } from \\\"./interfaces/V3SpokePoolInterface.sol\\\";\\nimport { IERC20Auth } from \\\"./external/interfaces/IERC20Auth.sol\\\";\\nimport { WETH9Interface } from \\\"./external/interfaces/WETH9Interface.sol\\\";\\nimport { IPermit2 } from \\\"./external/interfaces/IPermit2.sol\\\";\\nimport { PeripherySigningLib } from \\\"./libraries/PeripherySigningLib.sol\\\";\\nimport { SpokePoolPeripheryInterface } from \\\"./interfaces/SpokePoolPeripheryInterface.sol\\\";\\nimport { AddressToBytes32 } from \\\"./libraries/AddressConverters.sol\\\";\\n\\n/**\\n * @title SwapProxy\\n * @notice A dedicated proxy contract that isolates swap execution to mitigate frontrunning vulnerabilities.\\n * The SpokePoolPeriphery transfers tokens to this contract, which performs the swap and returns tokens back to the periphery.\\n * @custom:security-contact bugs@across.to\\n */\\ncontract SwapProxy is ReentrancyGuard {\\n using SafeERC20 for IERC20;\\n using Address for address;\\n\\n // Canonical Permit2 contract address\\n IPermit2 public immutable permit2;\\n\\n // EIP 1271 magic bytes indicating a valid signature.\\n bytes4 private constant EIP1271_VALID_SIGNATURE = 0x1626ba7e;\\n\\n // EIP 1271 bytes indicating an invalid signature.\\n bytes4 private constant EIP1271_INVALID_SIGNATURE = 0xffffffff;\\n\\n // Mapping from (token, spender) to nonce for Permit2 operations\\n mapping(address => mapping(address => uint48)) private permit2Nonces;\\n\\n // Slot for checking whether this contract is expecting a callback from permit2. Used to confirm whether it should return a valid signature response.\\n bool private expectingPermit2Callback;\\n\\n // Errors\\n error SwapFailed();\\n error UnsupportedTransferType();\\n error InvalidExchange();\\n\\n /**\\n * @notice Constructs a new SwapProxy.\\n * @param _permit2 Address of the canonical permit2 contract.\\n */\\n constructor(address _permit2) {\\n permit2 = IPermit2(_permit2);\\n }\\n\\n /**\\n * @notice Executes a swap on the given exchange with the provided calldata.\\n * @param inputToken The token to swap from\\n * @param outputToken The token to swap to\\n * @param inputAmount The amount of input tokens to swap\\n * @param exchange The exchange to perform the swap\\n * @param transferType The method of transferring tokens to the exchange\\n * @param routerCalldata The calldata to execute on the exchange\\n * @return outputAmount The actual amount of output tokens received from the swap\\n */\\n function performSwap(\\n address inputToken,\\n address outputToken,\\n uint256 inputAmount,\\n address exchange,\\n SpokePoolPeripheryInterface.TransferType transferType,\\n bytes calldata routerCalldata\\n ) external nonReentrant returns (uint256 outputAmount) {\\n // Prevent nonce invalidation attack by disallowing exchange to be the permit2 address\\n if (exchange == address(permit2)) revert InvalidExchange();\\n\\n // We'll return the final balance of output tokens\\n\\n // The exchange will either receive funds from this contract via:\\n // 1. A direct approval to spend funds on this contract (TransferType.Approval),\\n // 2. A direct transfer of funds to the exchange (TransferType.Transfer), or\\n // 3. A permit2 approval (TransferType.Permit2Approval)\\n if (transferType == SpokePoolPeripheryInterface.TransferType.Approval) {\\n IERC20(inputToken).forceApprove(exchange, inputAmount);\\n } else if (transferType == SpokePoolPeripheryInterface.TransferType.Transfer) {\\n IERC20(inputToken).safeTransfer(exchange, inputAmount);\\n } else if (transferType == SpokePoolPeripheryInterface.TransferType.Permit2Approval) {\\n IERC20(inputToken).forceApprove(address(permit2), inputAmount);\\n expectingPermit2Callback = true;\\n permit2.permit(\\n address(this), // owner\\n IPermit2.PermitSingle({\\n details: IPermit2.PermitDetails({\\n token: inputToken,\\n amount: uint160(inputAmount),\\n expiration: uint48(block.timestamp),\\n nonce: permit2Nonces[inputToken][exchange]++\\n }),\\n spender: exchange,\\n sigDeadline: block.timestamp\\n }), // permitSingle\\n \\\"\\\" // signature is unused. The only verification for a valid signature is if we are at this code block.\\n );\\n expectingPermit2Callback = false;\\n } else {\\n revert UnsupportedTransferType();\\n }\\n\\n // Execute the swap\\n (bool success, ) = exchange.call(routerCalldata);\\n if (!success) revert SwapFailed();\\n\\n // Get the final output token balance\\n uint256 outputBalance = IERC20(outputToken).balanceOf(address(this));\\n\\n // Transfer all output tokens back to the periphery\\n IERC20(outputToken).safeTransfer(msg.sender, outputBalance);\\n\\n // Return the net amount received from the swap\\n return outputBalance;\\n }\\n\\n /**\\n * @notice Verifies that the signer is the owner of the signing contract.\\n * @dev This function is called by Permit2 during the permit process\\n * and we need to return a valid signature result to allow permit2 to succeed.\\n */\\n function isValidSignature(bytes32, bytes calldata) external view returns (bytes4 magicBytes) {\\n magicBytes = (msg.sender == address(permit2) && expectingPermit2Callback)\\n ? EIP1271_VALID_SIGNATURE\\n : EIP1271_INVALID_SIGNATURE;\\n }\\n}\\n\\n/**\\n * @title SpokePoolPeriphery\\n * @notice Contract for performing more complex interactions with an Across spoke pool deployment.\\n * @custom:security-contact bugs@across.to\\n */\\ncontract SpokePoolPeriphery is SpokePoolPeripheryInterface, ReentrancyGuard, MultiCaller, EIP712 {\\n using SafeERC20 for IERC20;\\n using Address for address;\\n using AddressToBytes32 for address;\\n\\n // Canonical Permit2 contract address.\\n IPermit2 public immutable permit2;\\n\\n // Swap proxy used for isolating all swap operations\\n SwapProxy public immutable swapProxy;\\n\\n // Mapping from user address to their current nonce\\n mapping(address => uint256) public permitNonces;\\n\\n event SwapBeforeBridge(\\n address exchange,\\n bytes exchangeCalldata,\\n address indexed swapToken,\\n address indexed acrossInputToken,\\n uint256 swapTokenAmount,\\n uint256 acrossInputAmount,\\n bytes32 indexed acrossOutputToken,\\n uint256 acrossOutputAmount\\n );\\n\\n /****************************************\\n * ERRORS *\\n ****************************************/\\n error MinimumExpectedInputAmount();\\n error InvalidMsgValue();\\n error InvalidSignature();\\n error InvalidMinExpectedInputAmount();\\n error InvalidNonce();\\n\\n /**\\n * @notice Construct a new Periphery contract.\\n * @param _permit2 Address of the canonical permit2 contract.\\n */\\n constructor(IPermit2 _permit2) EIP712(\\\"ACROSS-PERIPHERY\\\", \\\"1.0.0\\\") {\\n require(address(_permit2) != address(0), \\\"Permit2 cannot be zero address\\\");\\n require(_isContract(address(_permit2)), \\\"Permit2 must be a contract\\\");\\n permit2 = _permit2;\\n\\n // Deploy the swap proxy with reference to the permit2 address\\n swapProxy = new SwapProxy(address(_permit2));\\n }\\n\\n /**\\n * @inheritdoc SpokePoolPeripheryInterface\\n */\\n function depositNative(\\n address spokePool,\\n bytes32 recipient,\\n address inputToken,\\n uint256 inputAmount,\\n bytes32 outputToken,\\n uint256 outputAmount,\\n uint256 destinationChainId,\\n bytes32 exclusiveRelayer,\\n uint32 quoteTimestamp,\\n uint32 fillDeadline,\\n uint32 exclusivityParameter,\\n bytes memory message\\n ) external payable override nonReentrant {\\n // Set msg.sender as the depositor so that msg.sender can speed up the deposit.\\n V3SpokePoolInterface(spokePool).deposit{ value: msg.value }(\\n msg.sender.toBytes32(),\\n recipient,\\n inputToken.toBytes32(),\\n outputToken,\\n inputAmount,\\n outputAmount,\\n destinationChainId,\\n exclusiveRelayer,\\n quoteTimestamp,\\n fillDeadline,\\n exclusivityParameter,\\n message\\n );\\n }\\n\\n /**\\n * @inheritdoc SpokePoolPeripheryInterface\\n * @dev Revert case: When enableProportionalAdjustment is true, the calculation\\n * depositData.outputAmount * returnAmount may overflow if the product exceeds 2^256-1,\\n * causing immediate transaction revert even when the final division result would fit.\\n * This case should be extremely rare as both values would need to be > 1e18 * 1e18.\\n * Users will only see a generic failure without explanatory error message.\\n * @dev Does not support native tokens as swap output. Only ERC20 tokens can be deposited via this function.\\n */\\n function swapAndBridge(SwapAndDepositData calldata swapAndDepositData) external payable override nonReentrant {\\n // If a user performs a swapAndBridge with the swap token as the native token, wrap the value and treat the rest of transaction\\n // as though the user deposited a wrapped native token.\\n if (msg.value != 0) {\\n if (msg.value != swapAndDepositData.swapTokenAmount) revert InvalidMsgValue();\\n // Assume swapToken implements WETH9 interface if sending value\\n WETH9Interface(swapAndDepositData.swapToken).deposit{ value: msg.value }();\\n } else {\\n // Transfer ERC20 tokens from sender to this contract\\n IERC20(swapAndDepositData.swapToken).safeTransferFrom(\\n msg.sender,\\n address(this),\\n swapAndDepositData.swapTokenAmount\\n );\\n }\\n\\n _swapAndBridge(swapAndDepositData);\\n }\\n\\n /**\\n * @inheritdoc SpokePoolPeripheryInterface\\n * @dev Revert case: When enableProportionalAdjustment is true, the calculation\\n * depositData.outputAmount * returnAmount may overflow if the product exceeds 2^256-1,\\n * causing immediate transaction revert even when the final division result would fit.\\n * This case should be extremely rare as both values would need to be > 1e18 * 1e18.\\n * Users will only see a generic failure without explanatory error message.\\n * @dev Does not support native tokens as swap output. Only ERC20 tokens can be deposited via this function.\\n */\\n function swapAndBridgeWithPermit(\\n address signatureOwner,\\n SwapAndDepositData calldata swapAndDepositData,\\n uint256 deadline,\\n bytes calldata permitSignature,\\n bytes calldata swapAndDepositDataSignature\\n ) external override nonReentrant {\\n (bytes32 r, bytes32 s, uint8 v) = PeripherySigningLib.deserializeSignature(permitSignature);\\n // Load variables used in this function onto the stack.\\n address _swapToken = swapAndDepositData.swapToken;\\n uint256 _swapTokenAmount = swapAndDepositData.swapTokenAmount;\\n uint256 _submissionFeeAmount = swapAndDepositData.submissionFees.amount;\\n address _submissionFeeRecipient = swapAndDepositData.submissionFees.recipient;\\n uint256 _pullAmount = _submissionFeeAmount + _swapTokenAmount;\\n\\n // For permit transactions, we wrap the call in a try/catch block so that the transaction will continue even if the call to\\n // permit fails. For example, this may be useful if the permit signature, which can be redeemed by anyone, is executed by somebody\\n // other than this contract.\\n try IERC20Permit(_swapToken).permit(signatureOwner, address(this), _pullAmount, deadline, v, r, s) {} catch {}\\n IERC20(_swapToken).safeTransferFrom(signatureOwner, address(this), _pullAmount);\\n _paySubmissionFees(_swapToken, _submissionFeeRecipient, _submissionFeeAmount);\\n // Verify and increment nonce to prevent replay attacks.\\n _validateAndIncrementNonce(signatureOwner, swapAndDepositData.nonce);\\n // Verify that the signatureOwner signed the input swapAndDepositData.\\n _validateSignature(\\n signatureOwner,\\n PeripherySigningLib.hashSwapAndDepositData(swapAndDepositData),\\n swapAndDepositDataSignature\\n );\\n _swapAndBridge(swapAndDepositData);\\n }\\n\\n /**\\n * @inheritdoc SpokePoolPeripheryInterface\\n * @dev Revert case: When enableProportionalAdjustment is true, the calculation\\n * depositData.outputAmount * returnAmount may overflow if the product exceeds 2^256-1,\\n * causing immediate transaction revert even when the final division result would fit.\\n * This case should be extremely rare as both values would need to be > 1e18 * 1e18.\\n * Users will only see a generic failure without explanatory error message.\\n * @dev Does not support native tokens as swap output. Only ERC20 tokens can be deposited via this function.\\n */\\n function swapAndBridgeWithPermit2(\\n address signatureOwner,\\n SwapAndDepositData calldata swapAndDepositData,\\n IPermit2.PermitTransferFrom calldata permit,\\n bytes calldata signature\\n ) external override nonReentrant {\\n bytes32 witness = PeripherySigningLib.hashSwapAndDepositData(swapAndDepositData);\\n uint256 _submissionFeeAmount = swapAndDepositData.submissionFees.amount;\\n IPermit2.SignatureTransferDetails memory transferDetails = IPermit2.SignatureTransferDetails({\\n to: address(this),\\n requestedAmount: swapAndDepositData.swapTokenAmount + _submissionFeeAmount\\n });\\n\\n permit2.permitWitnessTransferFrom(\\n permit,\\n transferDetails,\\n signatureOwner,\\n witness,\\n PeripherySigningLib.EIP712_SWAP_AND_DEPOSIT_TYPE_STRING,\\n signature\\n );\\n _paySubmissionFees(\\n swapAndDepositData.swapToken,\\n swapAndDepositData.submissionFees.recipient,\\n _submissionFeeAmount\\n );\\n _swapAndBridge(swapAndDepositData);\\n }\\n\\n /**\\n * @inheritdoc SpokePoolPeripheryInterface\\n * @dev Revert case: When enableProportionalAdjustment is true, the calculation\\n * depositData.outputAmount * returnAmount may overflow if the product exceeds 2^256-1,\\n * causing immediate transaction revert even when the final division result would fit.\\n * This case should be extremely rare as both values would need to be > 1e18 * 1e18.\\n * Users will only see a generic failure without explanatory error message.\\n * @dev Does not support native tokens as swap output. Only ERC20 tokens can be deposited via this function.\\n */\\n function swapAndBridgeWithAuthorization(\\n address signatureOwner,\\n SwapAndDepositData calldata swapAndDepositData,\\n uint256 validAfter,\\n uint256 validBefore,\\n bytes calldata receiveWithAuthSignature,\\n bytes calldata swapAndDepositDataSignature\\n ) external override nonReentrant {\\n (bytes32 r, bytes32 s, uint8 v) = PeripherySigningLib.deserializeSignature(receiveWithAuthSignature);\\n uint256 _submissionFeeAmount = swapAndDepositData.submissionFees.amount;\\n // While any contract can vacuously implement `receiveWithAuthorization` (or just have a fallback),\\n // if tokens were not sent to this contract, by this call to swapData.swapToken, this function will revert\\n // when attempting to swap tokens it does not own.\\n IERC20Auth(address(swapAndDepositData.swapToken)).receiveWithAuthorization(\\n signatureOwner,\\n address(this),\\n swapAndDepositData.swapTokenAmount + _submissionFeeAmount,\\n validAfter,\\n validBefore,\\n bytes32(swapAndDepositData.nonce),\\n v,\\n r,\\n s\\n );\\n _paySubmissionFees(\\n swapAndDepositData.swapToken,\\n swapAndDepositData.submissionFees.recipient,\\n _submissionFeeAmount\\n );\\n\\n // Note: No need to validate our internal nonce for receiveWithAuthorization\\n // as EIP-3009 has its own nonce mechanism that prevents replay attacks.\\n //\\n // Design Decision: We reuse the receiveWithAuthorization nonce for our signatures,\\n // but not for permit, which creates a theoretical replay attack that we think is\\n // incredibly unlikely because this would require:\\n // 1. A token implementing both ERC-2612 and ERC-3009\\n // 2. A user using the same nonces for swapAndBridgeWithPermit and for swapAndBridgeWithAuthorization\\n // 3. Issuing these signatures within a short amount of time (limited by fillDeadlineBuffer)\\n // Verify that the signatureOwner signed the input swapAndDepositData.\\n _validateSignature(\\n signatureOwner,\\n PeripherySigningLib.hashSwapAndDepositData(swapAndDepositData),\\n swapAndDepositDataSignature\\n );\\n _swapAndBridge(swapAndDepositData);\\n }\\n\\n /**\\n * @inheritdoc SpokePoolPeripheryInterface\\n */\\n function depositWithPermit(\\n address signatureOwner,\\n DepositData calldata depositData,\\n uint256 deadline,\\n bytes calldata permitSignature,\\n bytes calldata depositDataSignature\\n ) external override nonReentrant {\\n (bytes32 r, bytes32 s, uint8 v) = PeripherySigningLib.deserializeSignature(permitSignature);\\n // Load variables used in this function onto the stack.\\n address _inputToken = depositData.baseDepositData.inputToken;\\n uint256 _inputAmount = depositData.inputAmount;\\n uint256 _submissionFeeAmount = depositData.submissionFees.amount;\\n address _submissionFeeRecipient = depositData.submissionFees.recipient;\\n uint256 _pullAmount = _submissionFeeAmount + _inputAmount;\\n\\n // For permit transactions, we wrap the call in a try/catch block so that the transaction will continue even if the call to\\n // permit fails. For example, this may be useful if the permit signature, which can be redeemed by anyone, is executed by somebody\\n // other than this contract.\\n try IERC20Permit(_inputToken).permit(signatureOwner, address(this), _pullAmount, deadline, v, r, s) {} catch {}\\n IERC20(_inputToken).safeTransferFrom(signatureOwner, address(this), _pullAmount);\\n _paySubmissionFees(_inputToken, _submissionFeeRecipient, _submissionFeeAmount);\\n\\n // Verify and increment nonce to prevent replay attacks.\\n _validateAndIncrementNonce(signatureOwner, depositData.nonce);\\n // Verify that the signatureOwner signed the input depositData.\\n _validateSignature(signatureOwner, PeripherySigningLib.hashDepositData(depositData), depositDataSignature);\\n _deposit(\\n depositData.spokePool,\\n depositData.baseDepositData.depositor,\\n depositData.baseDepositData.recipient,\\n _inputToken,\\n depositData.baseDepositData.outputToken,\\n _inputAmount,\\n depositData.baseDepositData.outputAmount,\\n depositData.baseDepositData.destinationChainId,\\n depositData.baseDepositData.exclusiveRelayer,\\n depositData.baseDepositData.quoteTimestamp,\\n depositData.baseDepositData.fillDeadline,\\n depositData.baseDepositData.exclusivityParameter,\\n depositData.baseDepositData.message\\n );\\n }\\n\\n /**\\n * @inheritdoc SpokePoolPeripheryInterface\\n */\\n function depositWithPermit2(\\n address signatureOwner,\\n DepositData calldata depositData,\\n IPermit2.PermitTransferFrom calldata permit,\\n bytes calldata signature\\n ) external override nonReentrant {\\n bytes32 witness = PeripherySigningLib.hashDepositData(depositData);\\n uint256 _submissionFeeAmount = depositData.submissionFees.amount;\\n IPermit2.SignatureTransferDetails memory transferDetails = IPermit2.SignatureTransferDetails({\\n to: address(this),\\n requestedAmount: depositData.inputAmount + _submissionFeeAmount\\n });\\n\\n permit2.permitWitnessTransferFrom(\\n permit,\\n transferDetails,\\n signatureOwner,\\n witness,\\n PeripherySigningLib.EIP712_DEPOSIT_TYPE_STRING,\\n signature\\n );\\n _paySubmissionFees(\\n depositData.baseDepositData.inputToken,\\n depositData.submissionFees.recipient,\\n _submissionFeeAmount\\n );\\n\\n _deposit(\\n depositData.spokePool,\\n depositData.baseDepositData.depositor,\\n depositData.baseDepositData.recipient,\\n depositData.baseDepositData.inputToken,\\n depositData.baseDepositData.outputToken,\\n depositData.inputAmount,\\n depositData.baseDepositData.outputAmount,\\n depositData.baseDepositData.destinationChainId,\\n depositData.baseDepositData.exclusiveRelayer,\\n depositData.baseDepositData.quoteTimestamp,\\n depositData.baseDepositData.fillDeadline,\\n depositData.baseDepositData.exclusivityParameter,\\n depositData.baseDepositData.message\\n );\\n }\\n\\n /**\\n * @inheritdoc SpokePoolPeripheryInterface\\n */\\n function depositWithAuthorization(\\n address signatureOwner,\\n DepositData calldata depositData,\\n uint256 validAfter,\\n uint256 validBefore,\\n bytes calldata receiveWithAuthSignature,\\n bytes calldata depositDataSignature\\n ) external override nonReentrant {\\n // Load variables used multiple times onto the stack.\\n uint256 _inputAmount = depositData.inputAmount;\\n uint256 _submissionFeeAmount = depositData.submissionFees.amount;\\n\\n // Redeem the receiveWithAuthSignature.\\n (bytes32 r, bytes32 s, uint8 v) = PeripherySigningLib.deserializeSignature(receiveWithAuthSignature);\\n IERC20Auth(depositData.baseDepositData.inputToken).receiveWithAuthorization(\\n signatureOwner,\\n address(this),\\n _inputAmount + _submissionFeeAmount,\\n validAfter,\\n validBefore,\\n bytes32(depositData.nonce),\\n v,\\n r,\\n s\\n );\\n _paySubmissionFees(\\n depositData.baseDepositData.inputToken,\\n depositData.submissionFees.recipient,\\n _submissionFeeAmount\\n );\\n\\n // Note: No need to validate our internal nonce for receiveWithAuthorization\\n // as EIP-3009 has its own nonce mechanism that prevents replay attacks.\\n //\\n // Design Decision: We reuse the receiveWithAuthorization nonce for our signatures,\\n // but not for permit, which creates a theoretical replay attack that we think is\\n // incredibly unlikely because this would require:\\n // 1. A token implementing both ERC-2612 and ERC-3009\\n // 2. A user using the same nonces for depositWithPermit and for depositWithAuthorization\\n // 3. Issuing these signatures within a short amount of time (limited by fillDeadlineBuffer)\\n // Verify that the signatureOwner signed the input depositData.\\n _validateSignature(signatureOwner, PeripherySigningLib.hashDepositData(depositData), depositDataSignature);\\n _deposit(\\n depositData.spokePool,\\n depositData.baseDepositData.depositor,\\n depositData.baseDepositData.recipient,\\n depositData.baseDepositData.inputToken,\\n depositData.baseDepositData.outputToken,\\n _inputAmount,\\n depositData.baseDepositData.outputAmount,\\n depositData.baseDepositData.destinationChainId,\\n depositData.baseDepositData.exclusiveRelayer,\\n depositData.baseDepositData.quoteTimestamp,\\n depositData.baseDepositData.fillDeadline,\\n depositData.baseDepositData.exclusivityParameter,\\n depositData.baseDepositData.message\\n );\\n }\\n\\n /**\\n * @notice Returns the contract's EIP712 domain separator, used to sign hashed DepositData/SwapAndDepositData types.\\n */\\n function domainSeparator() external view returns (bytes32) {\\n return _domainSeparatorV4();\\n }\\n\\n /**\\n * @notice Validates that the typed data hash corresponds to the input signature owner and corresponding signature.\\n * @param signatureOwner The alledged signer of the input hash.\\n * @param typedDataHash The EIP712 data hash to check the signature against.\\n * @param signature The signature to validate.\\n */\\n function _validateSignature(address signatureOwner, bytes32 typedDataHash, bytes calldata signature) private view {\\n if (!SignatureChecker.isValidSignatureNow(signatureOwner, _hashTypedDataV4(typedDataHash), signature)) {\\n revert InvalidSignature();\\n }\\n }\\n\\n /**\\n * @notice Validates and increments the user's nonce to prevent replay attacks.\\n * @param user The user whose nonce is being validated.\\n * @param providedNonce The provided nonce value.\\n */\\n function _validateAndIncrementNonce(address user, uint256 providedNonce) private {\\n if (permitNonces[user] != providedNonce) {\\n revert InvalidNonce();\\n }\\n permitNonces[user]++;\\n }\\n\\n /**\\n * @notice Approves the spoke pool and calls `depositV3` function with the specified input parameters.\\n * @param depositor The address on the origin chain which should be treated as the depositor by Across, and will therefore receive refunds if this deposit\\n * is unfilled.\\n * @param recipient The address on the destination chain which should receive outputAmount of outputToken.\\n * @param inputToken The token to deposit on the origin chain.\\n * @param outputToken The token to receive on the destination chain.\\n * @param inputAmount The amount of the input token to deposit.\\n * @param outputAmount The amount of the output token to receive.\\n * @param destinationChainId The network ID for the destination chain.\\n * @param exclusiveRelayer The optional address for an Across relayer which may fill the deposit exclusively.\\n * @param quoteTimestamp The timestamp at which the relay and LP fee was calculated.\\n * @param fillDeadline The timestamp at which the deposit must be filled before it will be refunded by Across.\\n * @param exclusivityParameter The deadline or offset during which the exclusive relayer has rights to fill the deposit without contention.\\n * @param message The message to execute on the destination chain.\\n */\\n function _deposit(\\n address spokePool,\\n address depositor,\\n bytes32 recipient,\\n address inputToken,\\n bytes32 outputToken,\\n uint256 inputAmount,\\n uint256 outputAmount,\\n uint256 destinationChainId,\\n bytes32 exclusiveRelayer,\\n uint32 quoteTimestamp,\\n uint32 fillDeadline,\\n uint32 exclusivityParameter,\\n bytes calldata message\\n ) private {\\n IERC20(inputToken).forceApprove(spokePool, inputAmount);\\n V3SpokePoolInterface(spokePool).deposit(\\n depositor.toBytes32(),\\n recipient,\\n inputToken.toBytes32(),\\n outputToken,\\n inputAmount,\\n outputAmount,\\n destinationChainId,\\n exclusiveRelayer,\\n quoteTimestamp,\\n fillDeadline,\\n exclusivityParameter,\\n message\\n );\\n }\\n\\n /**\\n * @notice Swaps a token on the origin chain before depositing into the Across spoke pool atomically.\\n * @param swapAndDepositData The parameters to use when calling both the swap on an exchange and bridging via an Across spoke pool.\\n */\\n function _swapAndBridge(SwapAndDepositData calldata swapAndDepositData) private {\\n // Load variables we use multiple times onto the stack.\\n IERC20 _swapToken = IERC20(swapAndDepositData.swapToken);\\n IERC20 _acrossInputToken = IERC20(swapAndDepositData.depositData.inputToken);\\n address _exchange = swapAndDepositData.exchange;\\n uint256 _swapTokenAmount = swapAndDepositData.swapTokenAmount;\\n\\n // Transfer tokens to the swap proxy for executing the swap\\n _swapToken.safeTransfer(address(swapProxy), _swapTokenAmount);\\n\\n // Execute the swap via the swap proxy using the appropriate transfer type\\n // This function will swap _swapToken for _acrossInputToken and return the amount of _acrossInputToken received\\n uint256 returnAmount = swapProxy.performSwap(\\n address(_swapToken),\\n address(_acrossInputToken),\\n _swapTokenAmount,\\n _exchange,\\n swapAndDepositData.transferType,\\n swapAndDepositData.routerCalldata\\n );\\n\\n // Sanity check that received amount from swap is enough to submit Across deposit with.\\n if (returnAmount < swapAndDepositData.minExpectedInputTokenAmount) revert MinimumExpectedInputAmount();\\n\\n // Calculate adjusted output amount based on whether proportional adjustment is enabled\\n if (swapAndDepositData.minExpectedInputTokenAmount == 0) revert InvalidMinExpectedInputAmount();\\n uint256 adjustedOutputAmount;\\n if (swapAndDepositData.enableProportionalAdjustment) {\\n // Adjust the output amount proportionally based on the returned input amount\\n adjustedOutputAmount =\\n (swapAndDepositData.depositData.outputAmount * returnAmount) /\\n swapAndDepositData.minExpectedInputTokenAmount;\\n } else {\\n // Use the fixed output amount without adjustment\\n adjustedOutputAmount = swapAndDepositData.depositData.outputAmount;\\n }\\n\\n emit SwapBeforeBridge(\\n _exchange,\\n swapAndDepositData.routerCalldata,\\n address(_swapToken),\\n address(_acrossInputToken),\\n _swapTokenAmount,\\n returnAmount,\\n swapAndDepositData.depositData.outputToken,\\n adjustedOutputAmount\\n );\\n\\n // Deposit the swapped tokens into Across and bridge them using remainder of input params.\\n _deposit(\\n swapAndDepositData.spokePool,\\n swapAndDepositData.depositData.depositor,\\n swapAndDepositData.depositData.recipient,\\n address(_acrossInputToken),\\n swapAndDepositData.depositData.outputToken,\\n returnAmount,\\n adjustedOutputAmount,\\n swapAndDepositData.depositData.destinationChainId,\\n swapAndDepositData.depositData.exclusiveRelayer,\\n swapAndDepositData.depositData.quoteTimestamp,\\n swapAndDepositData.depositData.fillDeadline,\\n swapAndDepositData.depositData.exclusivityParameter,\\n swapAndDepositData.depositData.message\\n );\\n }\\n\\n function _paySubmissionFees(address feeToken, address recipient, uint256 amount) private {\\n if (amount > 0) {\\n // Use msg.sender as recipient if recipient is zero address, otherwise use the specified recipient\\n address feeRecipient = recipient == address(0) ? msg.sender : recipient;\\n IERC20(feeToken).safeTransfer(feeRecipient, amount);\\n }\\n }\\n\\n /**\\n * @notice Internal function to check if an address is a contract\\n * @dev This is a replacement for OpenZeppelin's isContract function which is deprecated\\n * @param addr The address to check\\n * @return True if the address is a contract, false otherwise\\n */\\n function _isContract(address addr) private view returns (bool) {\\n uint256 size;\\n assembly {\\n size := extcodesize(addr)\\n }\\n return size > 0;\\n }\\n}\\n\",\"keccak256\":\"0x8ecd344db749f0f238f9e7ac37f96f2c8794acd111cef8ec5bb6ad70cdd327f6\",\"license\":\"GPL-3.0-or-later\"},\"contracts/external/interfaces/IERC20Auth.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.0;\\n\\n/*\\n * @notice Minimal interface for an EIP-3009 compliant token.\\n * https://eips.ethereum.org/EIPS/eip-3009\\n */\\ninterface IERC20Auth {\\n /**\\n * @notice Receive a transfer with a signed authorization from the payer\\n * @dev This has an additional check to ensure that the payee's address matches\\n * the caller of this function to prevent front-running attacks. (See security\\n * considerations)\\n * @param from Payer's address (Authorizer)\\n * @param to Payee's address\\n * @param value Amount to be transferred\\n * @param validAfter The time after which this is valid (unix time)\\n * @param validBefore The time before which this is valid (unix time)\\n * @param nonce Unique nonce\\n * @param v v of the signature\\n * @param r r of the signature\\n * @param s s of the signature\\n */\\n function receiveWithAuthorization(\\n address from,\\n address to,\\n uint256 value,\\n uint256 validAfter,\\n uint256 validBefore,\\n bytes32 nonce,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n}\\n\",\"keccak256\":\"0x9a36f56b918c50e7798dc6a5fee95daeb6da3bd6d299f5b450a970ba52a6ce46\",\"license\":\"BUSL-1.1\"},\"contracts/external/interfaces/IPermit2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IPermit2 {\\n struct PermitDetails {\\n address token;\\n uint160 amount;\\n uint48 expiration;\\n uint48 nonce;\\n }\\n\\n struct PermitSingle {\\n PermitDetails details;\\n address spender;\\n uint256 sigDeadline;\\n }\\n\\n struct TokenPermissions {\\n address token;\\n uint256 amount;\\n }\\n\\n struct PermitTransferFrom {\\n TokenPermissions permitted;\\n uint256 nonce;\\n uint256 deadline;\\n }\\n\\n struct SignatureTransferDetails {\\n address to;\\n uint256 requestedAmount;\\n }\\n\\n function permit(address owner, PermitSingle memory permitSingle, bytes calldata signature) external;\\n\\n function permitWitnessTransferFrom(\\n PermitTransferFrom memory permit,\\n SignatureTransferDetails calldata transferDetails,\\n address owner,\\n bytes32 witness,\\n string calldata witnessTypeString,\\n bytes calldata signature\\n ) external;\\n\\n function transferFrom(address from, address to, uint160 amount, address token) external;\\n}\\n\",\"keccak256\":\"0x7c6a2087606df8c70ab1585b69d3f155e2301e274d5a056b3b7e2402929cff33\",\"license\":\"MIT\"},\"contracts/external/interfaces/WETH9Interface.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.0;\\n\\n/**\\n * @notice Interface for the WETH9 contract.\\n */\\ninterface WETH9Interface {\\n /**\\n * @notice Burn Wrapped Ether and receive native Ether.\\n * @param wad Amount of WETH to unwrap and send to caller.\\n */\\n function withdraw(uint256 wad) external;\\n\\n /**\\n * @notice Lock native Ether and mint Wrapped Ether ERC20\\n * @dev msg.value is amount of Wrapped Ether to mint/Ether to lock.\\n */\\n function deposit() external payable;\\n\\n /**\\n * @notice Get balance of WETH held by `guy`.\\n * @param guy Address to get balance of.\\n * @return wad Amount of WETH held by `guy`.\\n */\\n function balanceOf(address guy) external view returns (uint256 wad);\\n\\n /**\\n * @notice Transfer `wad` of WETH from caller to `guy`.\\n * @param guy Address to send WETH to.\\n * @param wad Amount of WETH to send.\\n * @return ok True if transfer succeeded.\\n */\\n function transfer(address guy, uint256 wad) external returns (bool);\\n}\\n\",\"keccak256\":\"0x3f7892554ec7f54681fdd3cc18a41346c246c9c1afba016c52990ef77741f718\",\"license\":\"BUSL-1.1\"},\"contracts/interfaces/SpokePoolPeripheryInterface.sol\":{\"content\":\"//SPDX-License-Identifier: Unlicense\\npragma solidity ^0.8.0;\\n\\nimport { IERC20 } from \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport { IERC20Permit } from \\\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol\\\";\\nimport { IPermit2 } from \\\"../external/interfaces/IPermit2.sol\\\";\\n\\n/**\\n * @title SpokePoolPeriphery\\n * @notice Contract for performing more complex interactions with an Across spoke pool deployment.\\n * @custom:security-contact bugs@across.to\\n */\\ninterface SpokePoolPeripheryInterface {\\n // Enum describing the method of transferring tokens to an exchange.\\n enum TransferType {\\n // Approve the exchange so that it may transfer tokens from this contract.\\n Approval, // 0\\n // Transfer tokens to the exchange before calling it in this contract.\\n Transfer, // 1\\n // Approve the exchange by authorizing a transfer with Permit2.\\n Permit2Approval // 2\\n }\\n\\n // Submission fees can be set by user to pay whoever submits the transaction in a gasless flow.\\n // These are assumed to be in the same currency that is input into the contract.\\n struct Fees {\\n // Amount of fees to pay recipient for submitting transaction.\\n uint256 amount;\\n // Recipient of fees amount.\\n address recipient;\\n }\\n\\n // Params we'll need caller to pass in to specify an Across Deposit. The input token will be swapped into first\\n // before submitting a bridge deposit, which is why we don't include the input token amount as it is not known\\n // until after the swap.\\n struct BaseDepositData {\\n // Token deposited on origin chain.\\n address inputToken;\\n // Token received on destination chain.\\n bytes32 outputToken;\\n // Amount of output token to be received by recipient.\\n uint256 outputAmount;\\n // The account credited with deposit who can submit speedups to the Across deposit.\\n address depositor;\\n // The account that will receive the output token on the destination chain. If the output token is\\n // wrapped native token, then if this is an EOA then they will receive native token on the destination\\n // chain and if this is a contract then they will receive an ERC20.\\n bytes32 recipient;\\n // The destination chain identifier.\\n uint256 destinationChainId;\\n // The account that can exclusively fill the deposit before the exclusivity parameter.\\n bytes32 exclusiveRelayer;\\n // Timestamp of the deposit used by system to charge fees. Must be within short window of time into the past\\n // relative to this chain's current time or deposit will revert.\\n uint32 quoteTimestamp;\\n // The timestamp on the destination chain after which this deposit can no longer be filled.\\n uint32 fillDeadline;\\n // The timestamp or offset on the destination chain after which anyone can fill the deposit. A detailed description on\\n // how the parameter is interpreted by the V3 spoke pool can be found at https://github.com/across-protocol/contracts/blob/fa67f5e97eabade68c67127f2261c2d44d9b007e/contracts/SpokePool.sol#L476\\n uint32 exclusivityParameter;\\n // Data that is forwarded to the recipient if the recipient is a contract.\\n bytes message;\\n }\\n\\n // Minimum amount of parameters needed to perform a swap on an exchange specified. We include information beyond just the router calldata\\n // and exchange address so that we may ensure that the swap was performed properly.\\n struct SwapAndDepositData {\\n // Amount of fees to pay for submitting transaction. Unused in gasful flows.\\n Fees submissionFees;\\n // Deposit data to use when interacting with the Across spoke pool.\\n BaseDepositData depositData;\\n // Token to swap.\\n address swapToken;\\n // Address of the exchange to use in the swap.\\n address exchange;\\n // Method of transferring tokens to the exchange.\\n TransferType transferType;\\n // Amount of the token to swap on the exchange.\\n uint256 swapTokenAmount;\\n // Minimum output amount of the exchange, and, by extension, the minimum required amount to deposit into an Across spoke pool.\\n uint256 minExpectedInputTokenAmount;\\n // The calldata to use when calling the exchange.\\n bytes routerCalldata;\\n // When enabled (true), if the swap returns more tokens than minExpectedInputTokenAmount,\\n // the outputAmount will be increased proportionally.\\n // When disabled (false), the original outputAmount is used regardless of how many tokens are returned.\\n bool enableProportionalAdjustment;\\n // Address of the SpokePool to use for depositing tokens after swap.\\n address spokePool;\\n // User nonce to prevent replay attacks.\\n uint256 nonce;\\n }\\n\\n // Extended deposit data to be used specifically for signing off on periphery deposits.\\n struct DepositData {\\n // Amount of fees to pay for submitting transaction. Unused in gasful flows.\\n Fees submissionFees;\\n // Deposit data describing the parameters for the V3 Across deposit.\\n BaseDepositData baseDepositData;\\n // The precise input amount to deposit into the spoke pool.\\n uint256 inputAmount;\\n // Address of the SpokePool to use for depositing tokens.\\n address spokePool;\\n // User nonce to prevent replay attacks.\\n uint256 nonce;\\n }\\n\\n /**\\n * @notice Passthrough function to `depositV3()` on the SpokePool contract for native token deposits.\\n * @dev Protects the caller from losing their ETH (or other native token) by reverting if the SpokePool address\\n * they intended to call does not exist on this chain. Because this contract can be deployed at the same address\\n * everywhere callers should be protected even if the transaction is submitted to an unintended network.\\n * This contract should only be used for native token deposits, as this problem only exists for native tokens.\\n * @param recipient Address (as bytes32) to receive funds on destination chain.\\n * @param inputToken Token to lock into this contract to initiate deposit.\\n * @param inputAmount Amount of tokens to deposit.\\n * @param outputAmount Amount of tokens to receive on destination chain.\\n * @param destinationChainId Denotes network where user will receive funds from SpokePool by a relayer.\\n * @param quoteTimestamp Timestamp used by relayers to compute this deposit's realizedLPFeePct which is paid\\n * to LP pool on HubPool.\\n * @param message Arbitrary data that can be used to pass additional information to the recipient along with the tokens.\\n * Note: this is intended to be used to pass along instructions for how a contract should use or allocate the tokens.\\n * @param exclusiveRelayer Address (as bytes32) of the relayer who has exclusive rights to fill this deposit. Can be set to\\n * 0x0 if no period is desired. If so, then must set exclusivityParameter to 0.\\n * @param exclusivityParameter Timestamp or offset, after which any relayer can fill this deposit. Must set\\n * to 0 if exclusiveRelayer is set to 0x0, and vice versa.\\n * @param fillDeadline Timestamp after which this deposit can no longer be filled.\\n */\\n function depositNative(\\n address spokePool,\\n bytes32 recipient,\\n address inputToken,\\n uint256 inputAmount,\\n bytes32 outputToken,\\n uint256 outputAmount,\\n uint256 destinationChainId,\\n bytes32 exclusiveRelayer,\\n uint32 quoteTimestamp,\\n uint32 fillDeadline,\\n uint32 exclusivityParameter,\\n bytes memory message\\n ) external payable;\\n\\n /**\\n * @notice Swaps tokens on this chain via specified router before submitting Across deposit atomically.\\n * Caller can specify their slippage tolerance for the swap and Across deposit params.\\n * @dev If msg.value is sent, the swapToken in swapAndDepositData must implement the WETH9 interface for wrapping native tokens.\\n * @param swapAndDepositData Specifies the data needed to perform a swap on a generic exchange.\\n */\\n function swapAndBridge(SwapAndDepositData calldata swapAndDepositData) external payable;\\n\\n /**\\n * @notice Swaps an EIP-2612 token on this chain via specified router before submitting Across deposit atomically.\\n * Caller can specify their slippage tolerance for the swap and Across deposit params.\\n * @dev If the swapToken does not implement `permit` to the specifications of EIP-2612, the permit call result will be ignored and the function will continue.\\n * @dev If the swapToken in swapData does not implement `permit` to the specifications of EIP-2612, this function will fail.\\n * @dev The nonce for the swapAndDepositData signature must be retrieved from permitNonces(signatureOwner).\\n * @dev Design Decision: We use separate nonce tracking for permit-based functions versus\\n * receiveWithAuthorization-based functions, which creates a theoretical replay attack that we think is\\n * incredibly unlikely because this would require:\\n * 1. A token implementing both ERC-2612 and ERC-3009\\n * 2. A user using the same nonces for swapAndBridgeWithPermit and for swapAndBridgeWithAuthorization\\n * 3. Issuing these signatures within a short amount of time (limited by fillDeadlineBuffer)\\n * @param signatureOwner The owner of the permit signature and swapAndDepositData signature. Assumed to be the depositor for the Across spoke pool.\\n * @param swapAndDepositData Specifies the params we need to perform a swap on a generic exchange.\\n * @param deadline Deadline before which the permit signature is valid.\\n * @param permitSignature Permit signature encoded as (bytes32 r, bytes32 s, uint8 v).\\n * @param swapAndDepositDataSignature The signature against the input swapAndDepositData encoded as (bytes32 r, bytes32 s, uint8 v).\\n */\\n function swapAndBridgeWithPermit(\\n address signatureOwner,\\n SwapAndDepositData calldata swapAndDepositData,\\n uint256 deadline,\\n bytes calldata permitSignature,\\n bytes calldata swapAndDepositDataSignature\\n ) external;\\n\\n /**\\n * @notice Uses permit2 to transfer tokens from a user before swapping a token on this chain via specified router and submitting an Across deposit atomically.\\n * Caller can specify their slippage tolerance for the swap and Across deposit params.\\n * @dev This function assumes the caller has properly set an allowance for the permit2 contract on this network.\\n * @dev This function assumes that the amount of token to be swapped is equal to the amount of the token to be received from permit2.\\n * @param signatureOwner The owner of the permit2 signature and depositor for the Across spoke pool.\\n * @param swapAndDepositData Specifies the params we need to perform a swap on a generic exchange.\\n * @param permit The permit data signed over by the owner.\\n * @param signature The permit2 signature to verify against the deposit data.\\n */\\n function swapAndBridgeWithPermit2(\\n address signatureOwner,\\n SwapAndDepositData calldata swapAndDepositData,\\n IPermit2.PermitTransferFrom calldata permit,\\n bytes calldata signature\\n ) external;\\n\\n /**\\n * @notice Swaps an EIP-3009 token on this chain via specified router before submitting Across deposit atomically.\\n * Caller can specify their slippage tolerance for the swap and Across deposit params.\\n * @dev If swapToken does not implement `receiveWithAuthorization` to the specifications of EIP-3009, this call will revert.\\n * @dev The nonce for the receiveWithAuthorization signature should match the nonce in the SwapAndDepositData.\\n * This nonce is managed by the ERC-3009 token contract.\\n * @param signatureOwner The owner of the EIP3009 signature and swapAndDepositData signature. Assumed to be the depositor for the Across spoke pool.\\n * @param swapAndDepositData Specifies the params we need to perform a swap on a generic exchange.\\n * @param validAfter The unix time after which the `receiveWithAuthorization` signature is valid.\\n * @param validBefore The unix time before which the `receiveWithAuthorization` signature is valid.\\n * @param receiveWithAuthSignature EIP3009 signature encoded as (bytes32 r, bytes32 s, uint8 v).\\n * @param swapAndDepositDataSignature The signature against the input swapAndDepositData encoded as (bytes32 r, bytes32 s, uint8 v).\\n */\\n function swapAndBridgeWithAuthorization(\\n address signatureOwner,\\n SwapAndDepositData calldata swapAndDepositData,\\n uint256 validAfter,\\n uint256 validBefore,\\n bytes calldata receiveWithAuthSignature,\\n bytes calldata swapAndDepositDataSignature\\n ) external;\\n\\n /**\\n * @notice Deposits an EIP-2612 token Across input token into the Spoke Pool contract.\\n * @dev If the token does not implement `permit` to the specifications of EIP-2612, the permit call result will be ignored and the function will continue.\\n * @dev If `acrossInputToken` does not implement `permit` to the specifications of EIP-2612, this function will fail.\\n * @dev The nonce for the depositData signature must be retrieved from permitNonces(signatureOwner).\\n * @dev Design Decision: We use separate nonce tracking for permit-based functions versus\\n * receiveWithAuthorization-based functions, which creates a theoretical replay attack that we think is\\n * incredibly unlikely because this would require:\\n * 1. A token implementing both ERC-2612 and ERC-3009\\n * 2. A user using the same nonces for depositWithPermit and for depositWithAuthorization\\n * 3. Issuing these signatures within a short amount of time (limited by fillDeadlineBuffer)\\n * @param signatureOwner The owner of the permit signature and depositData signature. Assumed to be the depositor for the Across spoke pool.\\n * @param depositData Specifies the Across deposit params to send.\\n * @param deadline Deadline before which the permit signature is valid.\\n * @param permitSignature Permit signature encoded as (bytes32 r, bytes32 s, uint8 v).\\n * @param depositDataSignature The signature against the input depositData encoded as (bytes32 r, bytes32 s, uint8 v).\\n */\\n function depositWithPermit(\\n address signatureOwner,\\n DepositData calldata depositData,\\n uint256 deadline,\\n bytes calldata permitSignature,\\n bytes calldata depositDataSignature\\n ) external;\\n\\n /**\\n * @notice Uses permit2 to transfer and submit an Across deposit to the Spoke Pool contract.\\n * @dev This function assumes the caller has properly set an allowance for the permit2 contract on this network.\\n * @dev This function assumes that the amount of token to be swapped is equal to the amount of the token to be received from permit2.\\n * @param signatureOwner The owner of the permit2 signature and depositor for the Across spoke pool.\\n * @param depositData Specifies the Across deposit params we'll send after the swap.\\n * @param permit The permit data signed over by the owner.\\n * @param signature The permit2 signature to verify against the deposit data.\\n */\\n function depositWithPermit2(\\n address signatureOwner,\\n DepositData calldata depositData,\\n IPermit2.PermitTransferFrom calldata permit,\\n bytes calldata signature\\n ) external;\\n\\n /**\\n * @notice Deposits an EIP-3009 compliant Across input token into the Spoke Pool contract.\\n * @dev If `acrossInputToken` does not implement `receiveWithAuthorization` to the specifications of EIP-3009, this call will revert.\\n * @dev The nonce for the receiveWithAuthorization signature should match the nonce in the DepositData.\\n * This nonce is managed by the ERC-3009 token contract.\\n * @param signatureOwner The owner of the EIP3009 signature and depositData signature. Assumed to be the depositor for the Across spoke pool.\\n * @param depositData Specifies the Across deposit params to send.\\n * @param validAfter The unix time after which the `receiveWithAuthorization` signature is valid.\\n * @param validBefore The unix time before which the `receiveWithAuthorization` signature is valid.\\n * @param receiveWithAuthSignature EIP3009 signature encoded as (bytes32 r, bytes32 s, uint8 v).\\n * @param depositDataSignature The signature against the input depositData encoded as (bytes32 r, bytes32 s, uint8 v).\\n */\\n function depositWithAuthorization(\\n address signatureOwner,\\n DepositData calldata depositData,\\n uint256 validAfter,\\n uint256 validBefore,\\n bytes calldata receiveWithAuthSignature,\\n bytes calldata depositDataSignature\\n ) external;\\n\\n /**\\n * @notice Returns the current permit nonce for a user.\\n * @param user The user whose nonce to return.\\n * @return The current permit nonce for the user.\\n */\\n function permitNonces(address user) external view returns (uint256);\\n}\\n\",\"keccak256\":\"0x12aec629e14bf2075ca5844d3d55234372b6d9ecde049e6df47faef77407d23a\",\"license\":\"Unlicense\"},\"contracts/interfaces/V3SpokePoolInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// Contains structs and functions used by SpokePool contracts to facilitate universal settlement.\\ninterface V3SpokePoolInterface {\\n /**************************************\\n * ENUMS *\\n **************************************/\\n\\n // Fill status tracks on-chain state of deposit, uniquely identified by relayHash.\\n enum FillStatus {\\n Unfilled,\\n RequestedSlowFill,\\n Filled\\n }\\n // Fill type is emitted in the FilledRelay event to assist Dataworker with determining which types of\\n // fills to refund (e.g. only fast fills) and whether a fast fill created a sow fill excess.\\n enum FillType {\\n FastFill,\\n // Fast fills are normal fills that do not replace a slow fill request.\\n ReplacedSlowFill,\\n // Replaced slow fills are fast fills that replace a slow fill request. This type is used by the Dataworker\\n // to know when to send excess funds from the SpokePool to the HubPool because they can no longer be used\\n // for a slow fill execution.\\n SlowFill\\n }\\n // Slow fills are requested via requestSlowFill and executed by executeSlowRelayLeaf after a bundle containing\\n // the slow fill is validated.\\n\\n /**************************************\\n * STRUCTS *\\n **************************************/\\n\\n // This struct represents the data to fully specify a **unique** relay submitted on this chain.\\n // This data is hashed with the chainId() and saved by the SpokePool to prevent collisions and protect against\\n // replay attacks on other chains. If any portion of this data differs, the relay is considered to be\\n // completely distinct.\\n struct V3RelayData {\\n // The bytes32 that made the deposit on the origin chain.\\n bytes32 depositor;\\n // The recipient bytes32 on the destination chain.\\n bytes32 recipient;\\n // This is the exclusive relayer who can fill the deposit before the exclusivity deadline.\\n bytes32 exclusiveRelayer;\\n // Token that is deposited on origin chain by depositor.\\n bytes32 inputToken;\\n // Token that is received on destination chain by recipient.\\n bytes32 outputToken;\\n // The amount of input token deposited by depositor.\\n uint256 inputAmount;\\n // The amount of output token to be received by recipient.\\n uint256 outputAmount;\\n // Origin chain id.\\n uint256 originChainId;\\n // The id uniquely identifying this deposit on the origin chain.\\n uint256 depositId;\\n // The timestamp on the destination chain after which this deposit can no longer be filled.\\n uint32 fillDeadline;\\n // The timestamp on the destination chain after which any relayer can fill the deposit.\\n uint32 exclusivityDeadline;\\n // Data that is forwarded to the recipient.\\n bytes message;\\n }\\n\\n // Same as V3RelayData but using addresses instead of bytes32 & depositId is uint32.\\n // Will be deprecated in favor of V3RelayData in the future.\\n struct V3RelayDataLegacy {\\n address depositor;\\n address recipient;\\n address exclusiveRelayer;\\n address inputToken;\\n address outputToken;\\n uint256 inputAmount;\\n uint256 outputAmount;\\n uint256 originChainId;\\n uint32 depositId;\\n uint32 fillDeadline;\\n uint32 exclusivityDeadline;\\n bytes message;\\n }\\n\\n // Contains parameters passed in by someone who wants to execute a slow relay leaf.\\n struct V3SlowFill {\\n V3RelayData relayData;\\n uint256 chainId;\\n uint256 updatedOutputAmount;\\n }\\n\\n // Contains information about a relay to be sent along with additional information that is not unique to the\\n // relay itself but is required to know how to process the relay. For example, \\\"updatedX\\\" fields can be used\\n // by the relayer to modify fields of the relay with the depositor's permission, and \\\"repaymentChainId\\\" is specified\\n // by the relayer to determine where to take a relayer refund, but doesn't affect the uniqueness of the relay.\\n struct V3RelayExecutionParams {\\n V3RelayData relay;\\n bytes32 relayHash;\\n uint256 updatedOutputAmount;\\n bytes32 updatedRecipient;\\n bytes updatedMessage;\\n uint256 repaymentChainId;\\n }\\n\\n // Packs together parameters emitted in FilledRelay because there are too many emitted otherwise.\\n // Similar to V3RelayExecutionParams, these parameters are not used to uniquely identify the deposit being\\n // filled so they don't have to be unpacked by all clients.\\n struct V3RelayExecutionEventInfo {\\n bytes32 updatedRecipient;\\n bytes32 updatedMessageHash;\\n uint256 updatedOutputAmount;\\n FillType fillType;\\n }\\n\\n // Represents the parameters required for a V3 deposit operation in the SpokePool.\\n struct DepositV3Params {\\n bytes32 depositor;\\n bytes32 recipient;\\n bytes32 inputToken;\\n bytes32 outputToken;\\n uint256 inputAmount;\\n uint256 outputAmount;\\n uint256 destinationChainId;\\n bytes32 exclusiveRelayer;\\n uint256 depositId;\\n uint32 quoteTimestamp;\\n uint32 fillDeadline;\\n uint32 exclusivityParameter;\\n bytes message;\\n }\\n\\n /**************************************\\n * EVENTS *\\n **************************************/\\n\\n event FundsDeposited(\\n bytes32 inputToken,\\n bytes32 outputToken,\\n uint256 inputAmount,\\n uint256 outputAmount,\\n uint256 indexed destinationChainId,\\n uint256 indexed depositId,\\n uint32 quoteTimestamp,\\n uint32 fillDeadline,\\n uint32 exclusivityDeadline,\\n bytes32 indexed depositor,\\n bytes32 recipient,\\n bytes32 exclusiveRelayer,\\n bytes message\\n );\\n\\n event RequestedSpeedUpDeposit(\\n uint256 updatedOutputAmount,\\n uint256 indexed depositId,\\n bytes32 indexed depositor,\\n bytes32 updatedRecipient,\\n bytes updatedMessage,\\n bytes depositorSignature\\n );\\n\\n event FilledRelay(\\n bytes32 inputToken,\\n bytes32 outputToken,\\n uint256 inputAmount,\\n uint256 outputAmount,\\n uint256 repaymentChainId,\\n uint256 indexed originChainId,\\n uint256 indexed depositId,\\n uint32 fillDeadline,\\n uint32 exclusivityDeadline,\\n bytes32 exclusiveRelayer,\\n bytes32 indexed relayer,\\n bytes32 depositor,\\n bytes32 recipient,\\n bytes32 messageHash,\\n V3RelayExecutionEventInfo relayExecutionInfo\\n );\\n\\n event RequestedSlowFill(\\n bytes32 inputToken,\\n bytes32 outputToken,\\n uint256 inputAmount,\\n uint256 outputAmount,\\n uint256 indexed originChainId,\\n uint256 indexed depositId,\\n uint32 fillDeadline,\\n uint32 exclusivityDeadline,\\n bytes32 exclusiveRelayer,\\n bytes32 depositor,\\n bytes32 recipient,\\n bytes32 messageHash\\n );\\n\\n event ClaimedRelayerRefund(\\n bytes32 indexed l2TokenAddress,\\n bytes32 indexed refundAddress,\\n uint256 amount,\\n address indexed caller\\n );\\n\\n /**************************************\\n * FUNCTIONS *\\n **************************************/\\n\\n function deposit(\\n bytes32 depositor,\\n bytes32 recipient,\\n bytes32 inputToken,\\n bytes32 outputToken,\\n uint256 inputAmount,\\n uint256 outputAmount,\\n uint256 destinationChainId,\\n bytes32 exclusiveRelayer,\\n uint32 quoteTimestamp,\\n uint32 fillDeadline,\\n uint32 exclusivityDeadline,\\n bytes calldata message\\n ) external payable;\\n\\n function depositV3(\\n address depositor,\\n address recipient,\\n address inputToken,\\n address outputToken,\\n uint256 inputAmount,\\n uint256 outputAmount,\\n uint256 destinationChainId,\\n address exclusiveRelayer,\\n uint32 quoteTimestamp,\\n uint32 fillDeadline,\\n uint32 exclusivityDeadline,\\n bytes calldata message\\n ) external payable;\\n\\n function depositNow(\\n bytes32 depositor,\\n bytes32 recipient,\\n bytes32 inputToken,\\n bytes32 outputToken,\\n uint256 inputAmount,\\n uint256 outputAmount,\\n uint256 destinationChainId,\\n bytes32 exclusiveRelayer,\\n uint32 fillDeadlineOffset,\\n uint32 exclusivityDeadline,\\n bytes calldata message\\n ) external payable;\\n\\n function depositV3Now(\\n address depositor,\\n address recipient,\\n address inputToken,\\n address outputToken,\\n uint256 inputAmount,\\n uint256 outputAmount,\\n uint256 destinationChainId,\\n address exclusiveRelayer,\\n uint32 fillDeadlineOffset,\\n uint32 exclusivityDeadline,\\n bytes calldata message\\n ) external payable;\\n\\n function unsafeDeposit(\\n bytes32 depositor,\\n bytes32 recipient,\\n bytes32 inputToken,\\n bytes32 outputToken,\\n uint256 inputAmount,\\n uint256 outputAmount,\\n uint256 destinationChainId,\\n bytes32 exclusiveRelayer,\\n uint256 depositNonce,\\n uint32 quoteTimestamp,\\n uint32 fillDeadline,\\n uint32 exclusivityParameter,\\n bytes calldata message\\n ) external payable;\\n\\n function speedUpDeposit(\\n bytes32 depositor,\\n uint256 depositId,\\n uint256 updatedOutputAmount,\\n bytes32 updatedRecipient,\\n bytes calldata updatedMessage,\\n bytes calldata depositorSignature\\n ) external;\\n\\n function speedUpV3Deposit(\\n address depositor,\\n uint256 depositId,\\n uint256 updatedOutputAmount,\\n address updatedRecipient,\\n bytes calldata updatedMessage,\\n bytes calldata depositorSignature\\n ) external;\\n\\n function fillRelay(\\n V3RelayData calldata relayData,\\n uint256 repaymentChainId,\\n bytes32 repaymentAddress\\n ) external;\\n\\n function fillV3Relay(V3RelayDataLegacy calldata relayData, uint256 repaymentChainId) external;\\n\\n function fillRelayWithUpdatedDeposit(\\n V3RelayData calldata relayData,\\n uint256 repaymentChainId,\\n bytes32 repaymentAddress,\\n uint256 updatedOutputAmount,\\n bytes32 updatedRecipient,\\n bytes calldata updatedMessage,\\n bytes calldata depositorSignature\\n ) external;\\n\\n function requestSlowFill(V3RelayData calldata relayData) external;\\n\\n function executeSlowRelayLeaf(\\n V3SlowFill calldata slowFillLeaf,\\n uint32 rootBundleId,\\n bytes32[] calldata proof\\n ) external;\\n\\n function claimRelayerRefund(bytes32 l2TokenAddress, bytes32 refundAddress) external;\\n\\n /**************************************\\n * ERRORS *\\n **************************************/\\n\\n error DisabledRoute();\\n error InvalidQuoteTimestamp();\\n error InvalidFillDeadline();\\n error InvalidExclusiveRelayer();\\n error MsgValueDoesNotMatchInputAmount();\\n error NotExclusiveRelayer();\\n error NoSlowFillsInExclusivityWindow();\\n error RelayFilled();\\n error InvalidSlowFillRequest();\\n error ExpiredFillDeadline();\\n error InvalidMerkleProof();\\n error InvalidChainId();\\n error InvalidMerkleLeaf();\\n error ClaimedMerkleLeaf();\\n error InvalidPayoutAdjustmentPct();\\n error WrongERC7683OrderId();\\n error LowLevelCallFailed(bytes data);\\n error InsufficientSpokePoolBalanceToExecuteLeaf();\\n error NoRelayerRefundToClaim();\\n\\n /**************************************\\n * LEGACY EVENTS *\\n **************************************/\\n\\n // Note: these events are unused, but included in the ABI for ease of migration.\\n event V3FundsDeposited(\\n address inputToken,\\n address outputToken,\\n uint256 inputAmount,\\n uint256 outputAmount,\\n uint256 indexed destinationChainId,\\n uint32 indexed depositId,\\n uint32 quoteTimestamp,\\n uint32 fillDeadline,\\n uint32 exclusivityDeadline,\\n address indexed depositor,\\n address recipient,\\n address exclusiveRelayer,\\n bytes message\\n );\\n\\n event RequestedSpeedUpV3Deposit(\\n uint256 updatedOutputAmount,\\n uint32 indexed depositId,\\n address indexed depositor,\\n address updatedRecipient,\\n bytes updatedMessage,\\n bytes depositorSignature\\n );\\n\\n // Legacy struct only used to preserve the FilledV3Relay event definition.\\n struct LegacyV3RelayExecutionEventInfo {\\n address updatedRecipient;\\n bytes updatedMessage;\\n uint256 updatedOutputAmount;\\n FillType fillType;\\n }\\n\\n event FilledV3Relay(\\n address inputToken,\\n address outputToken,\\n uint256 inputAmount,\\n uint256 outputAmount,\\n uint256 repaymentChainId,\\n uint256 indexed originChainId,\\n uint32 indexed depositId,\\n uint32 fillDeadline,\\n uint32 exclusivityDeadline,\\n address exclusiveRelayer,\\n address indexed relayer,\\n address depositor,\\n address recipient,\\n bytes message,\\n LegacyV3RelayExecutionEventInfo relayExecutionInfo\\n );\\n\\n event RequestedV3SlowFill(\\n address inputToken,\\n address outputToken,\\n uint256 inputAmount,\\n uint256 outputAmount,\\n uint256 indexed originChainId,\\n uint32 indexed depositId,\\n uint32 fillDeadline,\\n uint32 exclusivityDeadline,\\n address exclusiveRelayer,\\n address depositor,\\n address recipient,\\n bytes message\\n );\\n}\\n\",\"keccak256\":\"0x15819fd7ff7b33d3fc55de30a5eb1136dfbcf953be2a962dddc550d77e1823fe\",\"license\":\"MIT\"},\"contracts/libraries/AddressConverters.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.0;\\n\\nlibrary Bytes32ToAddress {\\n /**************************************\\n * ERRORS *\\n **************************************/\\n error InvalidBytes32();\\n\\n function toAddress(bytes32 _bytes32) internal pure returns (address) {\\n checkAddress(_bytes32);\\n return address(uint160(uint256(_bytes32)));\\n }\\n\\n function toAddressUnchecked(bytes32 _bytes32) internal pure returns (address) {\\n return address(uint160(uint256(_bytes32)));\\n }\\n\\n function checkAddress(bytes32 _bytes32) internal pure {\\n if (uint256(_bytes32) >> 160 != 0) {\\n revert InvalidBytes32();\\n }\\n }\\n}\\n\\nlibrary AddressToBytes32 {\\n function toBytes32(address _address) internal pure returns (bytes32) {\\n return bytes32(uint256(uint160(_address)));\\n }\\n}\\n\",\"keccak256\":\"0x378f28bb4a17a5c47457cb9341086b2140f7faf6c048f702d3528166f0d74453\",\"license\":\"BUSL-1.1\"},\"contracts/libraries/PeripherySigningLib.sol\":{\"content\":\"// SPDX-License-Identifier: BUSL-1.1\\npragma solidity ^0.8.0;\\n\\nimport { SpokePoolPeripheryInterface } from \\\"../interfaces/SpokePoolPeripheryInterface.sol\\\";\\n\\nlibrary PeripherySigningLib {\\n string internal constant EIP712_FEES_TYPE = \\\"Fees(uint256 amount,address recipient)\\\";\\n string internal constant EIP712_BASE_DEPOSIT_DATA_TYPE =\\n \\\"BaseDepositData(address inputToken,bytes32 outputToken,uint256 outputAmount,address depositor,bytes32 recipient,uint256 destinationChainId,bytes32 exclusiveRelayer,uint32 quoteTimestamp,uint32 fillDeadline,uint32 exclusivityParameter,bytes message)\\\";\\n string internal constant EIP712_DEPOSIT_DATA_TYPE =\\n \\\"DepositData(Fees submissionFees,BaseDepositData baseDepositData,uint256 inputAmount,address spokePool,uint256 nonce)\\\";\\n string internal constant EIP712_SWAP_AND_DEPOSIT_DATA_TYPE =\\n \\\"SwapAndDepositData(Fees submissionFees,BaseDepositData depositData,address swapToken,address exchange,uint8 transferType,uint256 swapTokenAmount,uint256 minExpectedInputTokenAmount,bytes routerCalldata,bool enableProportionalAdjustment,address spokePool,uint256 nonce)\\\";\\n\\n // EIP712 Type hashes.\\n bytes32 internal constant EIP712_FEES_TYPEHASH = keccak256(abi.encodePacked(EIP712_FEES_TYPE));\\n bytes32 internal constant EIP712_BASE_DEPOSIT_DATA_TYPEHASH =\\n keccak256(abi.encodePacked(EIP712_BASE_DEPOSIT_DATA_TYPE));\\n bytes32 internal constant EIP712_DEPOSIT_DATA_TYPEHASH =\\n keccak256(abi.encodePacked(EIP712_DEPOSIT_DATA_TYPE, EIP712_BASE_DEPOSIT_DATA_TYPE, EIP712_FEES_TYPE));\\n bytes32 internal constant EIP712_SWAP_AND_DEPOSIT_DATA_TYPEHASH =\\n keccak256(abi.encodePacked(EIP712_SWAP_AND_DEPOSIT_DATA_TYPE, EIP712_BASE_DEPOSIT_DATA_TYPE, EIP712_FEES_TYPE));\\n\\n // EIP712 Type strings.\\n string internal constant TOKEN_PERMISSIONS_TYPE = \\\"TokenPermissions(address token,uint256 amount)\\\";\\n string internal constant EIP712_SWAP_AND_DEPOSIT_TYPE_STRING =\\n string(\\n abi.encodePacked(\\n \\\"SwapAndDepositData witness)\\\",\\n EIP712_BASE_DEPOSIT_DATA_TYPE,\\n EIP712_FEES_TYPE,\\n EIP712_SWAP_AND_DEPOSIT_DATA_TYPE,\\n TOKEN_PERMISSIONS_TYPE\\n )\\n );\\n string internal constant EIP712_DEPOSIT_TYPE_STRING =\\n string(\\n abi.encodePacked(\\n \\\"DepositData witness)\\\",\\n EIP712_BASE_DEPOSIT_DATA_TYPE,\\n EIP712_DEPOSIT_DATA_TYPE,\\n EIP712_FEES_TYPE,\\n TOKEN_PERMISSIONS_TYPE\\n )\\n );\\n\\n error InvalidSignature();\\n\\n /**\\n * @notice Creates the EIP712 compliant hashed data corresponding to the BaseDepositData struct.\\n * @param baseDepositData Input struct whose values are hashed.\\n * @dev BaseDepositData is only used as a nested struct for both DepositData and SwapAndDepositData.\\n */\\n function hashBaseDepositData(\\n SpokePoolPeripheryInterface.BaseDepositData calldata baseDepositData\\n ) internal pure returns (bytes32) {\\n return\\n keccak256(\\n abi.encode(\\n EIP712_BASE_DEPOSIT_DATA_TYPEHASH,\\n baseDepositData.inputToken,\\n baseDepositData.outputToken,\\n baseDepositData.outputAmount,\\n baseDepositData.depositor,\\n baseDepositData.recipient,\\n baseDepositData.destinationChainId,\\n baseDepositData.exclusiveRelayer,\\n baseDepositData.quoteTimestamp,\\n baseDepositData.fillDeadline,\\n baseDepositData.exclusivityParameter,\\n keccak256(baseDepositData.message)\\n )\\n );\\n }\\n\\n /**\\n * @notice Creates the EIP712 compliant hashed data corresponding to the Fees struct.\\n * @param fees Input struct whose values are hashed.\\n * @dev Fees is only used as a nested struct for both DepositData and SwapAndDepositData.\\n */\\n function hashFees(SpokePoolPeripheryInterface.Fees calldata fees) internal pure returns (bytes32) {\\n return keccak256(abi.encode(EIP712_FEES_TYPEHASH, fees.amount, fees.recipient));\\n }\\n\\n /**\\n * @notice Creates the EIP712 compliant hashed data corresponding to the DepositData struct.\\n * @param depositData Input struct whose values are hashed.\\n */\\n function hashDepositData(\\n SpokePoolPeripheryInterface.DepositData calldata depositData\\n ) internal pure returns (bytes32) {\\n return\\n keccak256(\\n abi.encode(\\n EIP712_DEPOSIT_DATA_TYPEHASH,\\n hashFees(depositData.submissionFees),\\n hashBaseDepositData(depositData.baseDepositData),\\n depositData.inputAmount,\\n depositData.spokePool,\\n depositData.nonce\\n )\\n );\\n }\\n\\n /**\\n * @notice Creates the EIP712 compliant hashed data corresponding to the SwapAndDepositData struct.\\n * @param swapAndDepositData Input struct whose values are hashed.\\n */\\n function hashSwapAndDepositData(\\n SpokePoolPeripheryInterface.SwapAndDepositData calldata swapAndDepositData\\n ) internal pure returns (bytes32) {\\n return\\n keccak256(\\n abi.encode(\\n EIP712_SWAP_AND_DEPOSIT_DATA_TYPEHASH,\\n hashFees(swapAndDepositData.submissionFees),\\n hashBaseDepositData(swapAndDepositData.depositData),\\n swapAndDepositData.swapToken,\\n swapAndDepositData.exchange,\\n swapAndDepositData.transferType,\\n swapAndDepositData.swapTokenAmount,\\n swapAndDepositData.minExpectedInputTokenAmount,\\n keccak256(swapAndDepositData.routerCalldata),\\n swapAndDepositData.enableProportionalAdjustment,\\n swapAndDepositData.spokePool,\\n swapAndDepositData.nonce\\n )\\n );\\n }\\n\\n /**\\n * @notice Reads an input bytes, and, assuming it is a signature for a 32-byte hash, returns the v, r, and s values.\\n * @param _signature The input signature to deserialize.\\n */\\n function deserializeSignature(bytes calldata _signature) internal pure returns (bytes32 r, bytes32 s, uint8 v) {\\n if (_signature.length != 65) revert InvalidSignature();\\n v = uint8(_signature[64]);\\n r = bytes32(_signature[0:32]);\\n s = bytes32(_signature[32:64]);\\n }\\n}\\n\",\"keccak256\":\"0xc8fb7dd619dac372084b6d244bec8f672a6b01c13ffc356167976f6cac8b3c7b\",\"license\":\"BUSL-1.1\"}},\"version\":1}", + "bytecode": "0x6101a0346200021e576001600160401b0390601f6200463a38819003918201601f19168301929190848411838510176200020a5781602092849260409687528339810103126200021e57516001600160a01b03811691908281036200021e5781516200006b8162000222565b6010815260208101936f4143524f53532d50455249504845525960801b8552835190620000988262000222565b6005825260208201640312e302e360dc1b815260015f55620000ba846200023e565b96610120978852620000cc8462000407565b94610140958652519020928360e052519020610100978189524660a05286519160208301947f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f86528884015260608301524660808301523060a083015260a0825260c0820193828510828611176200020a57848852825190206080523060c05282156200021e57823b156200021e57610160958652610ceb928284019160c08301908111868210176200020a576020946200394f8739520301905ff09283156200020157610180938452519361339a9586620005b5873960805186612e8b015260a05186612f40015260c05186612e5c015260e05186612eda01525185612f0001525184610dc401525183610ded0152518281816102bb015281816107db0152611139015251818181610b4901526122730152f35b513d5f823e3d90fd5b634e487b7160e01b5f52604160045260245ffd5b5f80fd5b604081019081106001600160401b038211176200020a57604052565b805160209081811015620002d85750601f8251116200027957808251920151908083106200026b57501790565b825f19910360031b1b161790565b90604051809263305a27a960e01b82528060048301528251908160248401525f935b828510620002be575050604492505f838284010152601f80199101168101030190fd5b84810182015186860160440152938101938593506200029b565b9192916001600160401b0381116200020a5760019182548381811c91168015620003fc575b82821014620003e857601f8111620003b2575b5080601f83116001146200034e5750819293945f9262000342575b50505f19600383901b1c191690821b17905560ff90565b015190505f806200032b565b90601f19831695845f52825f20925f905b8882106200039a575050838596971062000381575b505050811b01905560ff90565b01515f1960f88460031b161c191690555f808062000374565b8087859682949686015181550195019301906200035f565b835f5283601f835f20920160051c820191601f850160051c015b828110620003dc57505062000310565b5f8155018490620003cc565b634e487b7160e01b5f52602260045260245ffd5b90607f1690620002fd565b805160209081811015620004935750601f8251116200043457808251920151908083106200026b57501790565b90604051809263305a27a960e01b82528060048301528251908160248401525f935b82851062000479575050604492505f838284010152601f80199101168101030190fd5b848101820151868601604401529381019385935062000456565b906001600160401b0382116200020a57600254926001938481811c91168015620005a9575b83821014620003e857601f811162000572575b5081601f84116001146200050a57509282939183925f94620004fe575b50501b915f199060031b1c19161760025560ff90565b015192505f80620004e8565b919083601f19811660025f52845f20945f905b888383106200055757505050106200053e575b505050811b0160025560ff90565b01515f1960f88460031b161c191690555f808062000530565b8587015188559096019594850194879350908101906200051d565b60025f5284601f845f20920160051c820191601f860160051c015b8281106200059d575050620004cb565b5f81550185906200058d565b90607f1690620004b856fe60806040526004361015610011575f80fd5b5f3560e01c8063110560ad146100f457806312261ee7146100ef5780631542ce53146100ea578063191d0ffc146100e5578063501f1053146100e057806356da359a146100db578063656a20e6146100d65780636ec4be90146100d1578063805e1148146100cc57806384b0196e146100c7578063ac9650d8146100c2578063b3cfd79e146100bd578063d2aca1a4146100b85763f698da25146100b3575f80fd5b611249565b611069565b610fc7565b610f3f565b610d8e565b610b6d565b610aff565b610a51565b61070d565b61063c565b6105d5565b610339565b610271565b61010c565b90816101809103126101085790565b5f80fd5b60207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101085760043567ffffffffffffffff8111610108576101569036906004016100f9565b61015e612028565b341561023d5760c081013534036102135761019a61018161018160608401611289565b73ffffffffffffffffffffffffffffffffffffffff1690565b90813b15610108575f600492604051938480927fd0e30db000000000000000000000000000000000000000000000000000000000825234905af191821561020e576101ea926101f5575b506121f2565b6101f360015f55565b005b80610202610208926108ce565b80610267565b5f6101e4565b611293565b60046040517f1841b4e1000000000000000000000000000000000000000000000000000000008152fd5b8061026261025361018160606101ea9501611289565b60c08301359030903390612037565b6121f2565b5f91031261010857565b34610108575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b73ffffffffffffffffffffffffffffffffffffffff81160361010857565b908160c09103126101085790565b9181601f840112156101085782359167ffffffffffffffff8311610108576020838186019501011161010857565b346101085760a07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857600435610374816102df565b67ffffffffffffffff602435818111610108576103959036906004016102fd565b606435828111610108576103ad90369060040161030b565b9092608435908111610108576103ca6103da91369060040161030b565b9290946103d5612028565b612517565b959192909460408501936103f66103f1868861129e565b611289565b9660608701359887359161040c60208a01611289565b936104178c856112fe565b9173ffffffffffffffffffffffffffffffffffffffff8c1693843b15610108576040517fd505accf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b166004820152306024820152604480820186905235606482015260ff91909116608482015260a481019290925260c48201525f8160e48183875af16105c2575b508630906104c093612037565b6104ca9188612577565b6104d860a0860135846125b5565b6104e185612643565b6104ea9361276f565b6104f660808301611289565b91610501828261129e565b60600161050d90611289565b93610518838361129e565b6080013595610527848461129e565b6020013590610536858561129e565b60400135610544868661129e565b60a0013591610553878761129e565b60c0013593610562888861129e565b60e00161056e90611310565b95610579898961129e565b6101000161058690611310565b976105918a8261129e565b6101200161059e90611310565b996105a89161129e565b61014081016105b69161131a565b9b6101ea9d919b612910565b806102026105cf926108ce565b5f6104b3565b346101085760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101085773ffffffffffffffffffffffffffffffffffffffff600435610625816102df565b165f526003602052602060405f2054604051908152f35b346101085760c07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857600435610677816102df565b67ffffffffffffffff90602435828111610108576106999036906004016100f9565b90608435838111610108576106b290369060040161030b565b9060a435948511610108576106ce6101f395369060040161030b565b949093606435916044359161136b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc608091011261010857604490565b346101085760e07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857600435610748816102df565b67ffffffffffffffff906024358281116101085761076a9036906004016100f9565b90610774366106de565b9260c4359081116101085761078d90369060040161030b565b9091610797612028565b6107a084612b93565b948435936107b28560c08801356112fe565b906107bb6109b4565b30815291602083015273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169261080461181d565b843b15610108575f968793610849926040519c8d998a9889977f137c29fe0000000000000000000000000000000000000000000000000000000089526004890161190d565b03925af190811561020e576101ea9361026292610880575b5061086e60608401611289565b61087a60208501611289565b90612577565b8061020261088d926108ce565b5f610861565b63ffffffff81160361010857565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b67ffffffffffffffff81116108e257604052565b6108a1565b6040810190811067ffffffffffffffff8211176108e257604052565b6020810190811067ffffffffffffffff8211176108e257604052565b6060810190811067ffffffffffffffff8211176108e257604052565b60a0810190811067ffffffffffffffff8211176108e257604052565b60c0810190811067ffffffffffffffff8211176108e257604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176108e257604052565b604051906109c1826108e7565b565b67ffffffffffffffff81116108e257601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b929192610a09826109c3565b91610a176040519384610973565b829481845281830111610108578281602093845f960137010152565b9080601f8301121561010857816020610a4e933591016109fd565b90565b6101807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857600435610a88816102df565b604435610a94816102df565b61010435610aa181610893565b61012435610aae81610893565b6101443591610abc83610893565b610164359467ffffffffffffffff861161010857610ae16101f3963690600401610a33565b9460e4359160c4359160a4359160843591606435916024359061199f565b34610108575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b346101085760a07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857600435610ba8816102df565b67ffffffffffffffff9060243582811161010857610bca9036906004016100f9565b9060643583811161010857610be390369060040161030b565b909360843590811161010857610c00610c0b91369060040161030b565b9290956103d5612028565b959193906060860135610c1d816102df565b863590610c2c60208901611289565b90610c3b60c08a0135846112fe565b9973ffffffffffffffffffffffffffffffffffffffff82169a8b3b15610108576040517fd505accf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88166004820152306024820152604480820183905235606482015260ff92909216608483015260a482019990995260c48101949094526101ea9961026298610cf995610cf492905f8160e48183865af1610d17575b50873091612037565b612577565b610d08610160860135826125b5565b610d1185612b93565b9061276f565b80610202610d24926108ce565b5f610ceb565b5f5b838110610d3b5750505f910152565b8181015183820152602001610d2c565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f602093610d8781518092818752878088019101610d2a565b0116010190565b34610108575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857610e61610de87f0000000000000000000000000000000000000000000000000000000000000000612c44565b610e117f0000000000000000000000000000000000000000000000000000000000000000612d79565b60405190610e1e82610903565b5f8252610e6f6020916040519586957f0f00000000000000000000000000000000000000000000000000000000000000875260e0602088015260e0870190610d4b565b908582036040870152610d4b565b4660608501523060808501525f60a085015283810360c0850152602080845192838152019301915f5b828110610ea757505050500390f35b835185528695509381019392810192600101610e98565b6020808201906020835283518092526040830192602060408460051b8301019501935f915b848310610ef35750505050505090565b9091929394958480610f2f837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc086600196030187528a51610d4b565b9801930193019194939290610ee3565b346101085760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101085767ffffffffffffffff6004358181116101085736602382011215610108578060040135918211610108573660248360051b8301011161010857610fc3916024610fb79201611ba4565b60405191829182610ebe565b0390f35b346101085760c07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857600435611002816102df565b67ffffffffffffffff90602435828111610108576110249036906004016102fd565b906084358381116101085761103d90369060040161030b565b9060a435948511610108576110596101f395369060040161030b565b9490936064359160443591611c8b565b346101085760e07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610108576004356110a4816102df565b67ffffffffffffffff602435818111610108576110c59036906004016102fd565b906110cf366106de565b9060c435908111610108576110e890369060040161030b565b6110f3949194612028565b6110fc84612643565b9184359360608601359661111086896112fe565b906111196109b4565b30815291602083015273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001692611162611f76565b843b15610108575f9687936111a7926040519a8b998a9889977f137c29fe0000000000000000000000000000000000000000000000000000000089526004890161190d565b03925af1801561020e57611236575b5060408201906111c6828461129e565b6111cf90611289565b906111dc60208501611289565b6111e592612577565b6111f160808301611289565b906111fc818461129e565b60600161120890611289565b92611213828261129e565b6080013594611222838361129e565b61122b90611289565b90610527848461129e565b80610202611243926108ce565b5f6111b6565b34610108575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610108576020611281612e45565b604051908152f35b35610a4e816102df565b6040513d5f823e3d90fd5b9035907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffea181360301821215610108570190565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b9190820180921161130b57565b6112d1565b35610a4e81610893565b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215610108570180359067ffffffffffffffff82116101085760200191813603831361010857565b9196939461137e919693956103d5612028565b873598606089019790939092611397610181808b611289565b916113a68c60c08d01356112fe565b93833b15610108576040517fef55bec600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff891660048201523060248201526044810195909552606485019690965260848401949094526101608a013560a484015260ff90941660c483015260e48201929092526101048101929092525f90829061012490829084905af196871561020e5761146361026296610d089361146f9a611478575b50611289565b61087a60208901611289565b6109c160015f55565b80610202611485926108ce565b5f61145d565b60405190610120820182811067ffffffffffffffff8211176108e25760405260f882527f506172616d657465722c6279746573206d657373616765290000000000000000610100837f426173654465706f73697444617461286164647265737320696e707574546f6b60208201527f656e2c62797465733332206f7574707574546f6b656e2c75696e74323536206f60408201527f7574707574416d6f756e742c61646472657373206465706f7369746f722c627960608201527f746573333220726563697069656e742c75696e743235362064657374696e617460808201527f696f6e436861696e49642c62797465733332206578636c757369766552656c6160a08201527f7965722c75696e7433322071756f746554696d657374616d702c75696e74333260c08201527f2066696c6c446561646c696e652c75696e743332206578636c7573697669747960e08201520152565b604051906115ee8261091f565b602682527f7069656e742900000000000000000000000000000000000000000000000000006040837f466565732875696e7432353620616d6f756e742c61646472657373207265636960208201520152565b60405190610140820182811067ffffffffffffffff8211176108e25760405261010c82527f6e74323536206e6f6e6365290000000000000000000000000000000000000000610120837f53776170416e644465706f736974446174612846656573207375626d6973736960208201527f6f6e466565732c426173654465706f73697444617461206465706f736974446160408201527f74612c616464726573732073776170546f6b656e2c616464726573732065786360608201527f68616e67652c75696e7438207472616e73666572547970652c75696e7432353660808201527f2073776170546f6b656e416d6f756e742c75696e74323536206d696e4578706560a08201527f63746564496e707574546f6b656e416d6f756e742c627974657320726f75746560c08201527f7243616c6c646174612c626f6f6c20656e61626c6550726f706f7274696f6e6160e08201527f6c41646a7573746d656e742c616464726573732073706f6b65506f6f6c2c75696101008201520152565b604051906117cb8261091f565b602e82527f696e7432353620616d6f756e74290000000000000000000000000000000000006040837f546f6b656e5065726d697373696f6e73286164647265737320746f6b656e2c7560208201520152565b61182561148b565b610a4e603b6118326115e1565b9261183b611640565b6118436117be565b906040519586937f53776170416e644465706f73697444617461207769746e65737329000000000060208601526118838151809260208989019101610d2a565b84016118988251809360208985019101610d2a565b016118ac8251809360208885019101610d2a565b016118c08251809360208785019101610d2a565b0103601b810184520182610973565b601f82602094937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe093818652868601375f8582860101520116010190565b959361197c611990946020610a4e9a9895610140956060813591611930836102df565b73ffffffffffffffffffffffffffffffffffffffff9283168e5280850135858f0152604080820135908f0152013560608d01528151811660808d015291015160a08b01521660c0890152565b60e087015280610100870152850190610d4b565b926101208185039101526118cf565b9a9692999490979399989591986119b4612028565b73ffffffffffffffffffffffffffffffffffffffff809c169a8b3b15610108576040519c8d9b8c9b7fad5425c6000000000000000000000000000000000000000000000000000000008d528c33906004015260248d01521660448b015260648a0152608489015260a488015260c487015260e486015263ffffffff92838092166101048701521661012485015216610144830152610164820161018090526101848201611a6091610d4b565b0381345a945f95f1801561020e57611a7d575b506109c160015f55565b80610202611a8a926108ce565b5f611a73565b67ffffffffffffffff81116108e25760051b60200190565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b90821015611af057611aec9160051b81019061131a565b9091565b611aa8565b908092918237015f815290565b3d15611b2c573d90611b13826109c3565b91611b216040519384610973565b82523d5f602084013e565b606090565b6020818303126101085780519067ffffffffffffffff8211610108570181601f82011215610108578051611b64816109c3565b92611b726040519485610973565b8184526020828401011161010857610a4e9160208085019101610d2a565b8051821015611af05760209160051b010190565b919091611bb083611a90565b906040611bc06040519384610973565b8483527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0611bed86611a90565b015f5b818110611c7a57505082945f5b818110611c0b575050505050565b5f80611c18838588611ad5565b90611c27875180938193611af5565b0390305af4611c34611b02565b9015611c5a5790600191611c488288611b90565b52611c538187611b90565b5001611bfd565b604481511061010857806004610108920151602480918301019101611b31565b806060602080938801015201611bf0565b9390959186959793611c9b612028565b6060870135988735938491611caf91612517565b92918c60408c019b8c611cc19161129e565b611cca90611289565b73ffffffffffffffffffffffffffffffffffffffff1693611cea916112fe565b93833b15610108576040517fef55bec600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8c16600482015230602482015260448101959095526064850196909652608484019490945260a08b013560a484015260ff90941660c483015260e48201929092526101048101929092525f90829061012490829084905af1801561020e57611eb8575b50611d9b858761129e565b611da490611289565b90611db160208801611289565b611dba92612577565b611dc385612643565b611dcc9361276f565b611dd860808301611289565b90611de3818461129e565b606001611def90611289565b92611dfa828261129e565b6080013594611e09838361129e565b611e1290611289565b90611e1d848461129e565b6020013590611e2c858561129e565b60400135611e3a868661129e565b60a0013591611e49878761129e565b60c0013593611e58888861129e565b60e001611e6490611310565b95611e6f898961129e565b61010001611e7c90611310565b97611e878a8261129e565b61012001611e9490611310565b99611e9e9161129e565b6101408101611eac9161131a565b9b61146f9d919b612910565b80610202611ec5926108ce565b5f611d90565b60405190611ed88261093b565b607482527f65506f6f6c2c75696e74323536206e6f6e6365290000000000000000000000006080837f4465706f736974446174612846656573207375626d697373696f6e466565732c60208201527f426173654465706f7369744461746120626173654465706f736974446174612c60408201527f75696e7432353620696e707574416d6f756e742c616464726573732073706f6b60608201520152565b611f7e61148b565b610a4e6034611f8b611ecb565b92611f946115e1565b611f9c6117be565b906040519586937f4465706f73697444617461207769746e657373290000000000000000000000006020860152611fdc8151809260208989019101610d2a565b8401611ff18251809360208985019101610d2a565b016120058251809360208885019101610d2a565b016120198251809360208785019101610d2a565b01036014810184520182610973565b60025f54146101085760025f55565b90926109c193604051937f23b872dd00000000000000000000000000000000000000000000000000000000602086015273ffffffffffffffffffffffffffffffffffffffff809216602486015216604484015260648301526064825261209c8261093b565b612f7b565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b3560038110156101085790565b90816020910312610108575190565b9060038210156120f75752565b6120a1565b929160c09461214293610a4e99979373ffffffffffffffffffffffffffffffffffffffff93848092168852166020870152604086015216606084015260808301906120ea565b8160a082015201916118cf565b8015150361010857565b35610a4e8161214f565b8181029291811591840414171561130b57565b8115612180570490565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b92916080949796959273ffffffffffffffffffffffffffffffffffffffff6121e39316855260a0602086015260a08501916118cf565b95604083015260608201520152565b906121ff60608301611289565b73ffffffffffffffffffffffffffffffffffffffff1691604092838201612226818461129e565b61222f90611289565b73ffffffffffffffffffffffffffffffffffffffff169261225260808201611289565b9360c0820135858873ffffffffffffffffffffffffffffffffffffffff80807f0000000000000000000000000000000000000000000000000000000000000000169861229f868b83613015565b1694169683888660a089016122b3906120ce565b6101008a01956122c3878c61131a565b929091519e8f9687967fc0437b7c00000000000000000000000000000000000000000000000000000000885260048801966122fd976120fc565b03815a6020945f91f197881561020e575f986124e6575b5060e08501358089106124bd578015612494579780999a938893879693612348986123739c8b868a6101209d8e8601612159565b1561247d5761235d612364936123699661129e565b0135612163565b612176565b9b8c915b8961131a565b9490936123808c8b61129e565b60200135985195869561239395876121ad565b037f32da500ab49223322bf87d13ba63ef4e5efd139c75f982183d27f59fc31fb25091a46101406123c5828201611289565b946123d0858461129e565b6060016123dc90611289565b966123e7868561129e565b60800135986123f6878661129e565b60200135612404888761129e565b60a0013593612413898861129e565b60c00135956124228a8961129e565b60e00161242e90611310565b976124398b8261129e565b6101000161244690611310565b996124518c8361129e565b0161245b90611310565b9a6124659161129e565b9081016124719161131a565b9b6109c19d919b612910565b93905061248a925061129e565b01359b8c9161236d565b60048b517f2d696302000000000000000000000000000000000000000000000000000000008152fd5b60048b517f0492ff87000000000000000000000000000000000000000000000000000000008152fd5b61250991985060203d602011612510575b6125018183610973565b8101906120db565b965f612314565b503d6124f7565b9190916041830361254d578260401015611af057604081013560f81c908360201161010857803593604011610108576020013591565b60046040517f8baa579f000000000000000000000000000000000000000000000000000000008152fd5b9190918161258457505050565b6109c19273ffffffffffffffffffffffffffffffffffffffff908181166125af575033915b16613015565b916125a9565b73ffffffffffffffffffffffffffffffffffffffff1690815f52600360205260405f205403612619575f52600360205260405f2080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461130b576001019055565b60046040517f756688fe000000000000000000000000000000000000000000000000000000008152fd5b61264b611ecb565b61276961265661148b565b9161265f6115e1565b926126b460405191826020968792836126818185019889815193849201610d2a565b830161269582518093878085019101610d2a565b016126a882518093868085019101610d2a565b01038084520182610973565b5190209161273d6126c485613077565b946126da6126d5604083018361129e565b613130565b946126e760808301611289565b90604051968795860198606060a0860135950135928a929360a09473ffffffffffffffffffffffffffffffffffffffff93989796929860c086019986526020860152604085015260608401521660808201520152565b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08101835282610973565b51902090565b929160426127ba9261277f612e45565b90604051917f1901000000000000000000000000000000000000000000000000000000000000835260028301526022820152209236916109fd565b916127c58383613282565b60058195929510156120f757159384612889575b5083156127eb575b5050501561254d57565b5f92935090829160405161283c8161273d60208201947f1626ba7e00000000000000000000000000000000000000000000000000000000998a87526024840152604060448401526064830190610d4b565b51915afa90612849611b02565b8261287b575b8261285f575b50505f80806127e1565b9091506020818051810103126101085760200151145f80612855565b91506020825110159161284f565b73ffffffffffffffffffffffffffffffffffffffff83811691161493505f6127d9565b989592610a4e9d9b9794919a9895926101809b8b5260208b015260408a01526060890152608088015260a087015260c086015260e085015263ffffffff928380921661010086015216610120840152166101408201528161016082015201916118cf565b9c979299949b96919a959098939b73ffffffffffffffffffffffffffffffffffffffff80809c169e8f60405160208101917f095ea7b300000000000000000000000000000000000000000000000000000000928381525f808461299a8a89602484016020909392919373ffffffffffffffffffffffffffffffffffffffff60408201951681520152565b03926129cc7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe094858101885287610973565b85519082865af16129db611b02565b81612ab5575b5080612aab575b15612a56575b50505050169c8d3b15610108576040517fad5425c60000000000000000000000000000000000000000000000000000000081529e8f9d8e9d612a349d1660048f016128ac565b03815a5f948591f1801561020e57612a495750565b806102026109c1926108ce565b604051602081019490945273ffffffffffffffffffffffffffffffffffffffff851660248501525f604485015260649081018452612aa29361209c91612a9c9082610973565b82612f7b565b8f5f81816129ee565b50813b15156129e8565b8051801592508215612aca575b50505f6129e1565b612add9250602080918301019101612f66565b5f80612ac2565b612aec611640565b612af461148b565b612769612aff6115e1565b916040518093602092836126818185019889815193849201610d2a565b989497936101609a96919d9c9b9793612b70936101808c019f8c5260208c015260408b015273ffffffffffffffffffffffffffffffffffffffff988980921660608c01521660808a015260a08901906120ea565b60c087015260e08601526101008501521515610120840152166101408201520152565b612b9b612ae4565b90612769612ba882613077565b9161273d612bbc6126d5604084018461129e565b94612bc960608401611289565b92612bd660808201611289565b95612be360a083016120ce565b91612bfc612bf561010083018361131a565b36916109fd565b6020815191012090612c116101208201612159565b92612c1f6101408301611289565b946040519a8b9960208b019d8e946101608701359a60c060e089013598013596612b1c565b60ff8114612c5557610a4e90613234565b506040516001805480821c915f90828116908115612d6f575b602090602086108314612d425785875286946020860193908115612d045750600114612ca4575b505050610a4e92500382610973565b925093612cd260015f527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690565b945f935b828510612cee57505050610a4e9350015f8080612c95565b8654858501529586019587955093810193612cd6565b915050610a4e959293507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009150168252151560051b015f8080612c95565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b93607f1693612c6e565b60ff8114612d8a57610a4e90613234565b506040515f6002546001918160011c9260018316908115612e3b575b602090602086108314612d425785875286946020860193908115612d045750600114612ddb57505050610a4e92500382610973565b925093612e0960025f527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90565b945f935b828510612e2557505050610a4e9350015f8080612c95565b8654858501529586019587955093810193612e0d565b93607f1693612da6565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016301480612f3d575b15612ead577f000000000000000000000000000000000000000000000000000000000000000090565b60405160208101907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f82527f000000000000000000000000000000000000000000000000000000000000000060408201527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260a0815261276981610957565b507f00000000000000000000000000000000000000000000000000000000000000004614612e84565b908160209103126101085751610a4e8161214f565b905f8073ffffffffffffffffffffffffffffffffffffffff612fe59416927f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65646020604051612fc8816108e7565b818152015260208151910182855af1612fdf611b02565b9161333b565b8051908115918215612ffb575b50501561010857565b61300e9250602080918301019101612f66565b5f80612ff2565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000602082015273ffffffffffffffffffffffffffffffffffffffff9290921660248301526044808301939093529181526109c19161209c606483610973565b61307f6115e1565b6040516130a96020828161309c8183019687815193849201610d2a565b8101038084520182610973565b5190209073ffffffffffffffffffffffffffffffffffffffff60208201356130d0816102df565b6040519260208401948552356040840152166060820152606081526080810181811067ffffffffffffffff8211176108e25760405251902090565b61311361148b565b6040516127696020828161309c8183019687815193849201610d2a565b61313861310b565b61276961314483611289565b9161273d61315460608601611289565b9461316160e08201611310565b61316e6101008301611310565b61317b6101208401611310565b9161318d612bf561014086018661131a565b6020815191012093604051988997602089019b60c0840135938d60a0820135946080830135946020604085013594013592989592936101609a9895919d9c9b97946101808b019e8b5273ffffffffffffffffffffffffffffffffffffffff80941660208c015260408b015260608a015216608088015260a087015260c086015260e085015263ffffffff928380921661010086015216610120840152166101408201520152565b60ff811690601f8211613258576040519161324e836108e7565b8252602082015290565b60046040517fb3512b0c000000000000000000000000000000000000000000000000000000008152fd5b9060418151145f146132aa57611aec91602082015190606060408401519301515f1a906132b3565b50505f90600290565b7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411613330576020935f9360ff60809460405194855216868401526040830152606082015282805260015afa1561020e575f5173ffffffffffffffffffffffffffffffffffffffff81161561332857905f90565b505f90600190565b505050505f90600390565b90156133555781511561334c575090565b3b156101085790565b50805190811561010857602001fdfea264697066735822122076d2e69c562548fabbccca79b928294faac7602bdcd8404103a9be2bbcdf8e8164736f6c6343000817003360a03461009357601f610ceb38819003918201601f19168301916001600160401b038311848410176100975780849260209460405283398101031261009357516001600160a01b038116908190036100935760015f55608052604051610c3f90816100ac82396080518181816101230152818161030e015281816104ce015281816105a30152818161077001526108670152f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610012575f80fd5b5f905f3560e01c90816312261ee71461081f575080631626ba7e146107085763c0437b7c1461003f575f80fd5b346106585760c07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126106585760043573ffffffffffffffffffffffffffffffffffffffff811681036106585760249081359073ffffffffffffffffffffffffffffffffffffffff821682036106585773ffffffffffffffffffffffffffffffffffffffff60643516606435036106585760843560038110156106585760a43567ffffffffffffffff8111610658576100fe90369060040161088b565b9260025f54146106585760025f5573ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff60643516146106de578692806102ae5750906101938394926044359073ffffffffffffffffffffffffffffffffffffffff6064359116610984565b81604051928392833781018381520390826064355af16101b1610927565b501561028457602060405180937f70a082310000000000000000000000000000000000000000000000000000000082523060048301528173ffffffffffffffffffffffffffffffffffffffff85165afa918215610279578392610240575b506020926102378360019373ffffffffffffffffffffffffffffffffffffffff339116610ab9565b55604051908152f35b9091506020813d602011610271575b8161025c602093836108b9565b8101031261026d575190602061020f565b8280fd5b3d915061024f565b6040513d85823e3d90fd5b60046040517f81ceff30000000000000000000000000000000000000000000000000000000008152fd5b600181036102e65750906102e18394926044359073ffffffffffffffffffffffffffffffffffffffff6064359116610ab9565b610193565b919250906002036106b45761034a60443573ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416610984565b60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00600254161760025573ffffffffffffffffffffffffffffffffffffffff81165f52600160205260405f2073ffffffffffffffffffffffffffffffffffffffff606435165f5260205260405f2080549065ffffffffffff808316146106885765ffffffffffff600181841601167fffffffffffffffffffffffffffffffffffffffffffffffffffff00000000000083161790556040519182608081011067ffffffffffffffff60808501111761065c579073ffffffffffffffffffffffffffffffffffffffff65ffffffffffff926080850160405216835273ffffffffffffffffffffffffffffffffffffffff6044351660208401528142166040840152166060820152604051906060820182811067ffffffffffffffff82111761065c5760405281526020810173ffffffffffffffffffffffffffffffffffffffff606435168152604082019042825273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000163b156106585773ffffffffffffffffffffffffffffffffffffffff9065ffffffffffff6060604051957f2b67b57000000000000000000000000000000000000000000000000000000000875230600488015251848151168b8801528460208201511660448801528260408201511660648801520151166084850152511660a48301525160c482015261010060e48201525f6101048201525f81610124818373ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000165af1801561064d57610602575b50849182917fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0060025416600255610193565b9091945067ffffffffffffffff8111610621576040525f93905f6105d0565b837f4e487b71000000000000000000000000000000000000000000000000000000005f5260416004525ffd5b6040513d5f823e3d90fd5b5f80fd5b867f4e487b71000000000000000000000000000000000000000000000000000000005f5260416004525ffd5b867f4e487b71000000000000000000000000000000000000000000000000000000005f5260116004525ffd5b60046040517f4b26f70d000000000000000000000000000000000000000000000000000000008152fd5b60046040517f40892c33000000000000000000000000000000000000000000000000000000008152fd5b346106585760407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126106585760243567ffffffffffffffff81116106585761075790369060040161088b565b505073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016331480610813575b156107eb5760207f1626ba7e000000000000000000000000000000000000000000000000000000005b7fffffffff0000000000000000000000000000000000000000000000000000000060405191168152f35b60207fffffffff000000000000000000000000000000000000000000000000000000006107c1565b5060ff60025416610798565b34610658575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126106585760209073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b9181601f840112156106585782359167ffffffffffffffff8311610658576020838186019501011161065857565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176108fa57604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b3d1561097f573d9067ffffffffffffffff82116108fa576040519161097460207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601846108b9565b82523d5f602084013e565b606090565b6040517f095ea7b3000000000000000000000000000000000000000000000000000000006020820181815273ffffffffffffffffffffffffffffffffffffffff851660248401526044808401969096529482529390926109e56064856108b9565b73ffffffffffffffffffffffffffffffffffffffff915f808486169287519082855af190610a11610927565b82610a87575b5081610a7c575b5015610a2c575b5050505050565b6040519460208601521660248401525f6044840152604483526080830183811067ffffffffffffffff8211176108fa57610a7293610a6d9160405282610b35565b610b35565b5f80808080610a25565b90503b15155f610a1e565b80519192508115918215610a9f575b5050905f610a17565b610ab29250602080918301019101610b1d565b5f80610a96565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000602082015273ffffffffffffffffffffffffffffffffffffffff929092166024830152604480830193909352918152610b1b91610a6d6064836108b9565b565b90816020910312610658575180151581036106585790565b73ffffffffffffffffffffffffffffffffffffffff166040516040810181811067ffffffffffffffff8211176108fa57610bb0937f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c656460205f948594604052818152015260208151910182855af1610baa610927565b91610be0565b8051908115918215610bc6575b50501561065857565b610bd99250602080918301019101610b1d565b5f80610bbd565b9015610bfa57815115610bf1575090565b3b156106585790565b50805190811561065857602001fdfea26469706673582212203e56c306b29b8549aa4b472d8cf83f2ef61d4ff0c45aa3cedb9f8896dd98478264736f6c63430008170033", + "deployedBytecode": "0x60806040526004361015610011575f80fd5b5f3560e01c8063110560ad146100f457806312261ee7146100ef5780631542ce53146100ea578063191d0ffc146100e5578063501f1053146100e057806356da359a146100db578063656a20e6146100d65780636ec4be90146100d1578063805e1148146100cc57806384b0196e146100c7578063ac9650d8146100c2578063b3cfd79e146100bd578063d2aca1a4146100b85763f698da25146100b3575f80fd5b611249565b611069565b610fc7565b610f3f565b610d8e565b610b6d565b610aff565b610a51565b61070d565b61063c565b6105d5565b610339565b610271565b61010c565b90816101809103126101085790565b5f80fd5b60207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101085760043567ffffffffffffffff8111610108576101569036906004016100f9565b61015e612028565b341561023d5760c081013534036102135761019a61018161018160608401611289565b73ffffffffffffffffffffffffffffffffffffffff1690565b90813b15610108575f600492604051938480927fd0e30db000000000000000000000000000000000000000000000000000000000825234905af191821561020e576101ea926101f5575b506121f2565b6101f360015f55565b005b80610202610208926108ce565b80610267565b5f6101e4565b611293565b60046040517f1841b4e1000000000000000000000000000000000000000000000000000000008152fd5b8061026261025361018160606101ea9501611289565b60c08301359030903390612037565b6121f2565b5f91031261010857565b34610108575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b73ffffffffffffffffffffffffffffffffffffffff81160361010857565b908160c09103126101085790565b9181601f840112156101085782359167ffffffffffffffff8311610108576020838186019501011161010857565b346101085760a07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857600435610374816102df565b67ffffffffffffffff602435818111610108576103959036906004016102fd565b606435828111610108576103ad90369060040161030b565b9092608435908111610108576103ca6103da91369060040161030b565b9290946103d5612028565b612517565b959192909460408501936103f66103f1868861129e565b611289565b9660608701359887359161040c60208a01611289565b936104178c856112fe565b9173ffffffffffffffffffffffffffffffffffffffff8c1693843b15610108576040517fd505accf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b166004820152306024820152604480820186905235606482015260ff91909116608482015260a481019290925260c48201525f8160e48183875af16105c2575b508630906104c093612037565b6104ca9188612577565b6104d860a0860135846125b5565b6104e185612643565b6104ea9361276f565b6104f660808301611289565b91610501828261129e565b60600161050d90611289565b93610518838361129e565b6080013595610527848461129e565b6020013590610536858561129e565b60400135610544868661129e565b60a0013591610553878761129e565b60c0013593610562888861129e565b60e00161056e90611310565b95610579898961129e565b6101000161058690611310565b976105918a8261129e565b6101200161059e90611310565b996105a89161129e565b61014081016105b69161131a565b9b6101ea9d919b612910565b806102026105cf926108ce565b5f6104b3565b346101085760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101085773ffffffffffffffffffffffffffffffffffffffff600435610625816102df565b165f526003602052602060405f2054604051908152f35b346101085760c07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857600435610677816102df565b67ffffffffffffffff90602435828111610108576106999036906004016100f9565b90608435838111610108576106b290369060040161030b565b9060a435948511610108576106ce6101f395369060040161030b565b949093606435916044359161136b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc608091011261010857604490565b346101085760e07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857600435610748816102df565b67ffffffffffffffff906024358281116101085761076a9036906004016100f9565b90610774366106de565b9260c4359081116101085761078d90369060040161030b565b9091610797612028565b6107a084612b93565b948435936107b28560c08801356112fe565b906107bb6109b4565b30815291602083015273ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169261080461181d565b843b15610108575f968793610849926040519c8d998a9889977f137c29fe0000000000000000000000000000000000000000000000000000000089526004890161190d565b03925af190811561020e576101ea9361026292610880575b5061086e60608401611289565b61087a60208501611289565b90612577565b8061020261088d926108ce565b5f610861565b63ffffffff81160361010857565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b67ffffffffffffffff81116108e257604052565b6108a1565b6040810190811067ffffffffffffffff8211176108e257604052565b6020810190811067ffffffffffffffff8211176108e257604052565b6060810190811067ffffffffffffffff8211176108e257604052565b60a0810190811067ffffffffffffffff8211176108e257604052565b60c0810190811067ffffffffffffffff8211176108e257604052565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176108e257604052565b604051906109c1826108e7565b565b67ffffffffffffffff81116108e257601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b929192610a09826109c3565b91610a176040519384610973565b829481845281830111610108578281602093845f960137010152565b9080601f8301121561010857816020610a4e933591016109fd565b90565b6101807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857600435610a88816102df565b604435610a94816102df565b61010435610aa181610893565b61012435610aae81610893565b6101443591610abc83610893565b610164359467ffffffffffffffff861161010857610ae16101f3963690600401610a33565b9460e4359160c4359160a4359160843591606435916024359061199f565b34610108575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b346101085760a07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857600435610ba8816102df565b67ffffffffffffffff9060243582811161010857610bca9036906004016100f9565b9060643583811161010857610be390369060040161030b565b909360843590811161010857610c00610c0b91369060040161030b565b9290956103d5612028565b959193906060860135610c1d816102df565b863590610c2c60208901611289565b90610c3b60c08a0135846112fe565b9973ffffffffffffffffffffffffffffffffffffffff82169a8b3b15610108576040517fd505accf00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff88166004820152306024820152604480820183905235606482015260ff92909216608483015260a482019990995260c48101949094526101ea9961026298610cf995610cf492905f8160e48183865af1610d17575b50873091612037565b612577565b610d08610160860135826125b5565b610d1185612b93565b9061276f565b80610202610d24926108ce565b5f610ceb565b5f5b838110610d3b5750505f910152565b8181015183820152602001610d2c565b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f602093610d8781518092818752878088019101610d2a565b0116010190565b34610108575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857610e61610de87f0000000000000000000000000000000000000000000000000000000000000000612c44565b610e117f0000000000000000000000000000000000000000000000000000000000000000612d79565b60405190610e1e82610903565b5f8252610e6f6020916040519586957f0f00000000000000000000000000000000000000000000000000000000000000875260e0602088015260e0870190610d4b565b908582036040870152610d4b565b4660608501523060808501525f60a085015283810360c0850152602080845192838152019301915f5b828110610ea757505050500390f35b835185528695509381019392810192600101610e98565b6020808201906020835283518092526040830192602060408460051b8301019501935f915b848310610ef35750505050505090565b9091929394958480610f2f837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc086600196030187528a51610d4b565b9801930193019194939290610ee3565b346101085760207ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101085767ffffffffffffffff6004358181116101085736602382011215610108578060040135918211610108573660248360051b8301011161010857610fc3916024610fb79201611ba4565b60405191829182610ebe565b0390f35b346101085760c07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261010857600435611002816102df565b67ffffffffffffffff90602435828111610108576110249036906004016102fd565b906084358381116101085761103d90369060040161030b565b9060a435948511610108576110596101f395369060040161030b565b9490936064359160443591611c8b565b346101085760e07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610108576004356110a4816102df565b67ffffffffffffffff602435818111610108576110c59036906004016102fd565b906110cf366106de565b9060c435908111610108576110e890369060040161030b565b6110f3949194612028565b6110fc84612643565b9184359360608601359661111086896112fe565b906111196109b4565b30815291602083015273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001692611162611f76565b843b15610108575f9687936111a7926040519a8b998a9889977f137c29fe0000000000000000000000000000000000000000000000000000000089526004890161190d565b03925af1801561020e57611236575b5060408201906111c6828461129e565b6111cf90611289565b906111dc60208501611289565b6111e592612577565b6111f160808301611289565b906111fc818461129e565b60600161120890611289565b92611213828261129e565b6080013594611222838361129e565b61122b90611289565b90610527848461129e565b80610202611243926108ce565b5f6111b6565b34610108575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc360112610108576020611281612e45565b604051908152f35b35610a4e816102df565b6040513d5f823e3d90fd5b9035907ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffea181360301821215610108570190565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b9190820180921161130b57565b6112d1565b35610a4e81610893565b9035907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe181360301821215610108570180359067ffffffffffffffff82116101085760200191813603831361010857565b9196939461137e919693956103d5612028565b873598606089019790939092611397610181808b611289565b916113a68c60c08d01356112fe565b93833b15610108576040517fef55bec600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff891660048201523060248201526044810195909552606485019690965260848401949094526101608a013560a484015260ff90941660c483015260e48201929092526101048101929092525f90829061012490829084905af196871561020e5761146361026296610d089361146f9a611478575b50611289565b61087a60208901611289565b6109c160015f55565b80610202611485926108ce565b5f61145d565b60405190610120820182811067ffffffffffffffff8211176108e25760405260f882527f506172616d657465722c6279746573206d657373616765290000000000000000610100837f426173654465706f73697444617461286164647265737320696e707574546f6b60208201527f656e2c62797465733332206f7574707574546f6b656e2c75696e74323536206f60408201527f7574707574416d6f756e742c61646472657373206465706f7369746f722c627960608201527f746573333220726563697069656e742c75696e743235362064657374696e617460808201527f696f6e436861696e49642c62797465733332206578636c757369766552656c6160a08201527f7965722c75696e7433322071756f746554696d657374616d702c75696e74333260c08201527f2066696c6c446561646c696e652c75696e743332206578636c7573697669747960e08201520152565b604051906115ee8261091f565b602682527f7069656e742900000000000000000000000000000000000000000000000000006040837f466565732875696e7432353620616d6f756e742c61646472657373207265636960208201520152565b60405190610140820182811067ffffffffffffffff8211176108e25760405261010c82527f6e74323536206e6f6e6365290000000000000000000000000000000000000000610120837f53776170416e644465706f736974446174612846656573207375626d6973736960208201527f6f6e466565732c426173654465706f73697444617461206465706f736974446160408201527f74612c616464726573732073776170546f6b656e2c616464726573732065786360608201527f68616e67652c75696e7438207472616e73666572547970652c75696e7432353660808201527f2073776170546f6b656e416d6f756e742c75696e74323536206d696e4578706560a08201527f63746564496e707574546f6b656e416d6f756e742c627974657320726f75746560c08201527f7243616c6c646174612c626f6f6c20656e61626c6550726f706f7274696f6e6160e08201527f6c41646a7573746d656e742c616464726573732073706f6b65506f6f6c2c75696101008201520152565b604051906117cb8261091f565b602e82527f696e7432353620616d6f756e74290000000000000000000000000000000000006040837f546f6b656e5065726d697373696f6e73286164647265737320746f6b656e2c7560208201520152565b61182561148b565b610a4e603b6118326115e1565b9261183b611640565b6118436117be565b906040519586937f53776170416e644465706f73697444617461207769746e65737329000000000060208601526118838151809260208989019101610d2a565b84016118988251809360208985019101610d2a565b016118ac8251809360208885019101610d2a565b016118c08251809360208785019101610d2a565b0103601b810184520182610973565b601f82602094937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe093818652868601375f8582860101520116010190565b959361197c611990946020610a4e9a9895610140956060813591611930836102df565b73ffffffffffffffffffffffffffffffffffffffff9283168e5280850135858f0152604080820135908f0152013560608d01528151811660808d015291015160a08b01521660c0890152565b60e087015280610100870152850190610d4b565b926101208185039101526118cf565b9a9692999490979399989591986119b4612028565b73ffffffffffffffffffffffffffffffffffffffff809c169a8b3b15610108576040519c8d9b8c9b7fad5425c6000000000000000000000000000000000000000000000000000000008d528c33906004015260248d01521660448b015260648a0152608489015260a488015260c487015260e486015263ffffffff92838092166101048701521661012485015216610144830152610164820161018090526101848201611a6091610d4b565b0381345a945f95f1801561020e57611a7d575b506109c160015f55565b80610202611a8a926108ce565b5f611a73565b67ffffffffffffffff81116108e25760051b60200190565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b90821015611af057611aec9160051b81019061131a565b9091565b611aa8565b908092918237015f815290565b3d15611b2c573d90611b13826109c3565b91611b216040519384610973565b82523d5f602084013e565b606090565b6020818303126101085780519067ffffffffffffffff8211610108570181601f82011215610108578051611b64816109c3565b92611b726040519485610973565b8184526020828401011161010857610a4e9160208085019101610d2a565b8051821015611af05760209160051b010190565b919091611bb083611a90565b906040611bc06040519384610973565b8483527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0611bed86611a90565b015f5b818110611c7a57505082945f5b818110611c0b575050505050565b5f80611c18838588611ad5565b90611c27875180938193611af5565b0390305af4611c34611b02565b9015611c5a5790600191611c488288611b90565b52611c538187611b90565b5001611bfd565b604481511061010857806004610108920151602480918301019101611b31565b806060602080938801015201611bf0565b9390959186959793611c9b612028565b6060870135988735938491611caf91612517565b92918c60408c019b8c611cc19161129e565b611cca90611289565b73ffffffffffffffffffffffffffffffffffffffff1693611cea916112fe565b93833b15610108576040517fef55bec600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8c16600482015230602482015260448101959095526064850196909652608484019490945260a08b013560a484015260ff90941660c483015260e48201929092526101048101929092525f90829061012490829084905af1801561020e57611eb8575b50611d9b858761129e565b611da490611289565b90611db160208801611289565b611dba92612577565b611dc385612643565b611dcc9361276f565b611dd860808301611289565b90611de3818461129e565b606001611def90611289565b92611dfa828261129e565b6080013594611e09838361129e565b611e1290611289565b90611e1d848461129e565b6020013590611e2c858561129e565b60400135611e3a868661129e565b60a0013591611e49878761129e565b60c0013593611e58888861129e565b60e001611e6490611310565b95611e6f898961129e565b61010001611e7c90611310565b97611e878a8261129e565b61012001611e9490611310565b99611e9e9161129e565b6101408101611eac9161131a565b9b61146f9d919b612910565b80610202611ec5926108ce565b5f611d90565b60405190611ed88261093b565b607482527f65506f6f6c2c75696e74323536206e6f6e6365290000000000000000000000006080837f4465706f736974446174612846656573207375626d697373696f6e466565732c60208201527f426173654465706f7369744461746120626173654465706f736974446174612c60408201527f75696e7432353620696e707574416d6f756e742c616464726573732073706f6b60608201520152565b611f7e61148b565b610a4e6034611f8b611ecb565b92611f946115e1565b611f9c6117be565b906040519586937f4465706f73697444617461207769746e657373290000000000000000000000006020860152611fdc8151809260208989019101610d2a565b8401611ff18251809360208985019101610d2a565b016120058251809360208885019101610d2a565b016120198251809360208785019101610d2a565b01036014810184520182610973565b60025f54146101085760025f55565b90926109c193604051937f23b872dd00000000000000000000000000000000000000000000000000000000602086015273ffffffffffffffffffffffffffffffffffffffff809216602486015216604484015260648301526064825261209c8261093b565b612f7b565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b3560038110156101085790565b90816020910312610108575190565b9060038210156120f75752565b6120a1565b929160c09461214293610a4e99979373ffffffffffffffffffffffffffffffffffffffff93848092168852166020870152604086015216606084015260808301906120ea565b8160a082015201916118cf565b8015150361010857565b35610a4e8161214f565b8181029291811591840414171561130b57565b8115612180570490565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601260045260245ffd5b92916080949796959273ffffffffffffffffffffffffffffffffffffffff6121e39316855260a0602086015260a08501916118cf565b95604083015260608201520152565b906121ff60608301611289565b73ffffffffffffffffffffffffffffffffffffffff1691604092838201612226818461129e565b61222f90611289565b73ffffffffffffffffffffffffffffffffffffffff169261225260808201611289565b9360c0820135858873ffffffffffffffffffffffffffffffffffffffff80807f0000000000000000000000000000000000000000000000000000000000000000169861229f868b83613015565b1694169683888660a089016122b3906120ce565b6101008a01956122c3878c61131a565b929091519e8f9687967fc0437b7c00000000000000000000000000000000000000000000000000000000885260048801966122fd976120fc565b03815a6020945f91f197881561020e575f986124e6575b5060e08501358089106124bd578015612494579780999a938893879693612348986123739c8b868a6101209d8e8601612159565b1561247d5761235d612364936123699661129e565b0135612163565b612176565b9b8c915b8961131a565b9490936123808c8b61129e565b60200135985195869561239395876121ad565b037f32da500ab49223322bf87d13ba63ef4e5efd139c75f982183d27f59fc31fb25091a46101406123c5828201611289565b946123d0858461129e565b6060016123dc90611289565b966123e7868561129e565b60800135986123f6878661129e565b60200135612404888761129e565b60a0013593612413898861129e565b60c00135956124228a8961129e565b60e00161242e90611310565b976124398b8261129e565b6101000161244690611310565b996124518c8361129e565b0161245b90611310565b9a6124659161129e565b9081016124719161131a565b9b6109c19d919b612910565b93905061248a925061129e565b01359b8c9161236d565b60048b517f2d696302000000000000000000000000000000000000000000000000000000008152fd5b60048b517f0492ff87000000000000000000000000000000000000000000000000000000008152fd5b61250991985060203d602011612510575b6125018183610973565b8101906120db565b965f612314565b503d6124f7565b9190916041830361254d578260401015611af057604081013560f81c908360201161010857803593604011610108576020013591565b60046040517f8baa579f000000000000000000000000000000000000000000000000000000008152fd5b9190918161258457505050565b6109c19273ffffffffffffffffffffffffffffffffffffffff908181166125af575033915b16613015565b916125a9565b73ffffffffffffffffffffffffffffffffffffffff1690815f52600360205260405f205403612619575f52600360205260405f2080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff811461130b576001019055565b60046040517f756688fe000000000000000000000000000000000000000000000000000000008152fd5b61264b611ecb565b61276961265661148b565b9161265f6115e1565b926126b460405191826020968792836126818185019889815193849201610d2a565b830161269582518093878085019101610d2a565b016126a882518093868085019101610d2a565b01038084520182610973565b5190209161273d6126c485613077565b946126da6126d5604083018361129e565b613130565b946126e760808301611289565b90604051968795860198606060a0860135950135928a929360a09473ffffffffffffffffffffffffffffffffffffffff93989796929860c086019986526020860152604085015260608401521660808201520152565b037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08101835282610973565b51902090565b929160426127ba9261277f612e45565b90604051917f1901000000000000000000000000000000000000000000000000000000000000835260028301526022820152209236916109fd565b916127c58383613282565b60058195929510156120f757159384612889575b5083156127eb575b5050501561254d57565b5f92935090829160405161283c8161273d60208201947f1626ba7e00000000000000000000000000000000000000000000000000000000998a87526024840152604060448401526064830190610d4b565b51915afa90612849611b02565b8261287b575b8261285f575b50505f80806127e1565b9091506020818051810103126101085760200151145f80612855565b91506020825110159161284f565b73ffffffffffffffffffffffffffffffffffffffff83811691161493505f6127d9565b989592610a4e9d9b9794919a9895926101809b8b5260208b015260408a01526060890152608088015260a087015260c086015260e085015263ffffffff928380921661010086015216610120840152166101408201528161016082015201916118cf565b9c979299949b96919a959098939b73ffffffffffffffffffffffffffffffffffffffff80809c169e8f60405160208101917f095ea7b300000000000000000000000000000000000000000000000000000000928381525f808461299a8a89602484016020909392919373ffffffffffffffffffffffffffffffffffffffff60408201951681520152565b03926129cc7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe094858101885287610973565b85519082865af16129db611b02565b81612ab5575b5080612aab575b15612a56575b50505050169c8d3b15610108576040517fad5425c60000000000000000000000000000000000000000000000000000000081529e8f9d8e9d612a349d1660048f016128ac565b03815a5f948591f1801561020e57612a495750565b806102026109c1926108ce565b604051602081019490945273ffffffffffffffffffffffffffffffffffffffff851660248501525f604485015260649081018452612aa29361209c91612a9c9082610973565b82612f7b565b8f5f81816129ee565b50813b15156129e8565b8051801592508215612aca575b50505f6129e1565b612add9250602080918301019101612f66565b5f80612ac2565b612aec611640565b612af461148b565b612769612aff6115e1565b916040518093602092836126818185019889815193849201610d2a565b989497936101609a96919d9c9b9793612b70936101808c019f8c5260208c015260408b015273ffffffffffffffffffffffffffffffffffffffff988980921660608c01521660808a015260a08901906120ea565b60c087015260e08601526101008501521515610120840152166101408201520152565b612b9b612ae4565b90612769612ba882613077565b9161273d612bbc6126d5604084018461129e565b94612bc960608401611289565b92612bd660808201611289565b95612be360a083016120ce565b91612bfc612bf561010083018361131a565b36916109fd565b6020815191012090612c116101208201612159565b92612c1f6101408301611289565b946040519a8b9960208b019d8e946101608701359a60c060e089013598013596612b1c565b60ff8114612c5557610a4e90613234565b506040516001805480821c915f90828116908115612d6f575b602090602086108314612d425785875286946020860193908115612d045750600114612ca4575b505050610a4e92500382610973565b925093612cd260015f527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf690565b945f935b828510612cee57505050610a4e9350015f8080612c95565b8654858501529586019587955093810193612cd6565b915050610a4e959293507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009150168252151560051b015f8080612c95565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b93607f1693612c6e565b60ff8114612d8a57610a4e90613234565b506040515f6002546001918160011c9260018316908115612e3b575b602090602086108314612d425785875286946020860193908115612d045750600114612ddb57505050610a4e92500382610973565b925093612e0960025f527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90565b945f935b828510612e2557505050610a4e9350015f8080612c95565b8654858501529586019587955093810193612e0d565b93607f1693612da6565b73ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016301480612f3d575b15612ead577f000000000000000000000000000000000000000000000000000000000000000090565b60405160208101907f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f82527f000000000000000000000000000000000000000000000000000000000000000060408201527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260a0815261276981610957565b507f00000000000000000000000000000000000000000000000000000000000000004614612e84565b908160209103126101085751610a4e8161214f565b905f8073ffffffffffffffffffffffffffffffffffffffff612fe59416927f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c65646020604051612fc8816108e7565b818152015260208151910182855af1612fdf611b02565b9161333b565b8051908115918215612ffb575b50501561010857565b61300e9250602080918301019101612f66565b5f80612ff2565b6040517fa9059cbb00000000000000000000000000000000000000000000000000000000602082015273ffffffffffffffffffffffffffffffffffffffff9290921660248301526044808301939093529181526109c19161209c606483610973565b61307f6115e1565b6040516130a96020828161309c8183019687815193849201610d2a565b8101038084520182610973565b5190209073ffffffffffffffffffffffffffffffffffffffff60208201356130d0816102df565b6040519260208401948552356040840152166060820152606081526080810181811067ffffffffffffffff8211176108e25760405251902090565b61311361148b565b6040516127696020828161309c8183019687815193849201610d2a565b61313861310b565b61276961314483611289565b9161273d61315460608601611289565b9461316160e08201611310565b61316e6101008301611310565b61317b6101208401611310565b9161318d612bf561014086018661131a565b6020815191012093604051988997602089019b60c0840135938d60a0820135946080830135946020604085013594013592989592936101609a9895919d9c9b97946101808b019e8b5273ffffffffffffffffffffffffffffffffffffffff80941660208c015260408b015260608a015216608088015260a087015260c086015260e085015263ffffffff928380921661010086015216610120840152166101408201520152565b60ff811690601f8211613258576040519161324e836108e7565b8252602082015290565b60046040517fb3512b0c000000000000000000000000000000000000000000000000000000008152fd5b9060418151145f146132aa57611aec91602082015190606060408401519301515f1a906132b3565b50505f90600290565b7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411613330576020935f9360ff60809460405194855216868401526040830152606082015282805260015afa1561020e575f5173ffffffffffffffffffffffffffffffffffffffff81161561332857905f90565b505f90600190565b505050505f90600390565b90156133555781511561334c575090565b3b156101085790565b50805190811561010857602001fdfea264697066735822122076d2e69c562548fabbccca79b928294faac7602bdcd8404103a9be2bbcdf8e8164736f6c63430008170033", + "devdoc": { + "custom:security-contact": "bugs@across.to", + "events": { + "EIP712DomainChanged()": { + "details": "MAY be emitted to signal that the domain could have changed." + } + }, + "kind": "dev", + "methods": { + "constructor": { + "params": { + "_permit2": "Address of the canonical permit2 contract." + } + }, + "depositNative(address,bytes32,address,uint256,bytes32,uint256,uint256,bytes32,uint32,uint32,uint32,bytes)": { + "details": "Protects the caller from losing their ETH (or other native token) by reverting if the SpokePool address they intended to call does not exist on this chain. Because this contract can be deployed at the same address everywhere callers should be protected even if the transaction is submitted to an unintended network. This contract should only be used for native token deposits, as this problem only exists for native tokens.", + "params": { + "destinationChainId": "Denotes network where user will receive funds from SpokePool by a relayer.", + "exclusiveRelayer": "Address (as bytes32) of the relayer who has exclusive rights to fill this deposit. Can be set to 0x0 if no period is desired. If so, then must set exclusivityParameter to 0.", + "exclusivityParameter": "Timestamp or offset, after which any relayer can fill this deposit. Must set to 0 if exclusiveRelayer is set to 0x0, and vice versa.", + "fillDeadline": "Timestamp after which this deposit can no longer be filled.", + "inputAmount": "Amount of tokens to deposit.", + "inputToken": "Token to lock into this contract to initiate deposit.", + "message": "Arbitrary data that can be used to pass additional information to the recipient along with the tokens. Note: this is intended to be used to pass along instructions for how a contract should use or allocate the tokens.", + "outputAmount": "Amount of tokens to receive on destination chain.", + "quoteTimestamp": "Timestamp used by relayers to compute this deposit's realizedLPFeePct which is paid to LP pool on HubPool.", + "recipient": "Address (as bytes32) to receive funds on destination chain." + } + }, + "depositWithAuthorization(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),uint256,address,uint256),uint256,uint256,bytes,bytes)": { + "details": "If `acrossInputToken` does not implement `receiveWithAuthorization` to the specifications of EIP-3009, this call will revert.The nonce for the receiveWithAuthorization signature should match the nonce in the DepositData. This nonce is managed by the ERC-3009 token contract.", + "params": { + "depositData": "Specifies the Across deposit params to send.", + "depositDataSignature": "The signature against the input depositData encoded as (bytes32 r, bytes32 s, uint8 v).", + "receiveWithAuthSignature": "EIP3009 signature encoded as (bytes32 r, bytes32 s, uint8 v).", + "signatureOwner": "The owner of the EIP3009 signature and depositData signature. Assumed to be the depositor for the Across spoke pool.", + "validAfter": "The unix time after which the `receiveWithAuthorization` signature is valid.", + "validBefore": "The unix time before which the `receiveWithAuthorization` signature is valid." + } + }, + "depositWithPermit(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),uint256,address,uint256),uint256,bytes,bytes)": { + "details": "If the token does not implement `permit` to the specifications of EIP-2612, the permit call result will be ignored and the function will continue.If `acrossInputToken` does not implement `permit` to the specifications of EIP-2612, this function will fail.The nonce for the depositData signature must be retrieved from permitNonces(signatureOwner).Design Decision: We use separate nonce tracking for permit-based functions versus receiveWithAuthorization-based functions, which creates a theoretical replay attack that we think is incredibly unlikely because this would require: 1. A token implementing both ERC-2612 and ERC-3009 2. A user using the same nonces for depositWithPermit and for depositWithAuthorization 3. Issuing these signatures within a short amount of time (limited by fillDeadlineBuffer)", + "params": { + "deadline": "Deadline before which the permit signature is valid.", + "depositData": "Specifies the Across deposit params to send.", + "depositDataSignature": "The signature against the input depositData encoded as (bytes32 r, bytes32 s, uint8 v).", + "permitSignature": "Permit signature encoded as (bytes32 r, bytes32 s, uint8 v).", + "signatureOwner": "The owner of the permit signature and depositData signature. Assumed to be the depositor for the Across spoke pool." + } + }, + "depositWithPermit2(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),uint256,address,uint256),((address,uint256),uint256,uint256),bytes)": { + "details": "This function assumes the caller has properly set an allowance for the permit2 contract on this network.This function assumes that the amount of token to be swapped is equal to the amount of the token to be received from permit2.", + "params": { + "depositData": "Specifies the Across deposit params we'll send after the swap.", + "permit": "The permit data signed over by the owner.", + "signature": "The permit2 signature to verify against the deposit data.", + "signatureOwner": "The owner of the permit2 signature and depositor for the Across spoke pool." + } + }, + "eip712Domain()": { + "details": "See {EIP-5267}. _Available since v4.9._" + }, + "swapAndBridge(((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),address,address,uint8,uint256,uint256,bytes,bool,address,uint256))": { + "details": "Revert case: When enableProportionalAdjustment is true, the calculation depositData.outputAmount * returnAmount may overflow if the product exceeds 2^256-1, causing immediate transaction revert even when the final division result would fit. This case should be extremely rare as both values would need to be > 1e18 * 1e18. Users will only see a generic failure without explanatory error message.Does not support native tokens as swap output. Only ERC20 tokens can be deposited via this function.", + "params": { + "swapAndDepositData": "Specifies the data needed to perform a swap on a generic exchange." + } + }, + "swapAndBridgeWithAuthorization(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),address,address,uint8,uint256,uint256,bytes,bool,address,uint256),uint256,uint256,bytes,bytes)": { + "details": "Revert case: When enableProportionalAdjustment is true, the calculation depositData.outputAmount * returnAmount may overflow if the product exceeds 2^256-1, causing immediate transaction revert even when the final division result would fit. This case should be extremely rare as both values would need to be > 1e18 * 1e18. Users will only see a generic failure without explanatory error message.Does not support native tokens as swap output. Only ERC20 tokens can be deposited via this function.", + "params": { + "receiveWithAuthSignature": "EIP3009 signature encoded as (bytes32 r, bytes32 s, uint8 v).", + "signatureOwner": "The owner of the EIP3009 signature and swapAndDepositData signature. Assumed to be the depositor for the Across spoke pool.", + "swapAndDepositData": "Specifies the params we need to perform a swap on a generic exchange.", + "swapAndDepositDataSignature": "The signature against the input swapAndDepositData encoded as (bytes32 r, bytes32 s, uint8 v).", + "validAfter": "The unix time after which the `receiveWithAuthorization` signature is valid.", + "validBefore": "The unix time before which the `receiveWithAuthorization` signature is valid." + } + }, + "swapAndBridgeWithPermit(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),address,address,uint8,uint256,uint256,bytes,bool,address,uint256),uint256,bytes,bytes)": { + "details": "Revert case: When enableProportionalAdjustment is true, the calculation depositData.outputAmount * returnAmount may overflow if the product exceeds 2^256-1, causing immediate transaction revert even when the final division result would fit. This case should be extremely rare as both values would need to be > 1e18 * 1e18. Users will only see a generic failure without explanatory error message.Does not support native tokens as swap output. Only ERC20 tokens can be deposited via this function.", + "params": { + "deadline": "Deadline before which the permit signature is valid.", + "permitSignature": "Permit signature encoded as (bytes32 r, bytes32 s, uint8 v).", + "signatureOwner": "The owner of the permit signature and swapAndDepositData signature. Assumed to be the depositor for the Across spoke pool.", + "swapAndDepositData": "Specifies the params we need to perform a swap on a generic exchange.", + "swapAndDepositDataSignature": "The signature against the input swapAndDepositData encoded as (bytes32 r, bytes32 s, uint8 v)." + } + }, + "swapAndBridgeWithPermit2(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),address,address,uint8,uint256,uint256,bytes,bool,address,uint256),((address,uint256),uint256,uint256),bytes)": { + "details": "Revert case: When enableProportionalAdjustment is true, the calculation depositData.outputAmount * returnAmount may overflow if the product exceeds 2^256-1, causing immediate transaction revert even when the final division result would fit. This case should be extremely rare as both values would need to be > 1e18 * 1e18. Users will only see a generic failure without explanatory error message.Does not support native tokens as swap output. Only ERC20 tokens can be deposited via this function.", + "params": { + "permit": "The permit data signed over by the owner.", + "signature": "The permit2 signature to verify against the deposit data.", + "signatureOwner": "The owner of the permit2 signature and depositor for the Across spoke pool.", + "swapAndDepositData": "Specifies the params we need to perform a swap on a generic exchange." + } + } + }, + "stateVariables": { + "permitNonces": { + "params": { + "user": "The user whose nonce to return." + }, + "return": "The current permit nonce for the user.", + "returns": { + "_0": "The current permit nonce for the user." + } + } + }, + "title": "SpokePoolPeriphery", + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": { + "constructor": { + "notice": "Construct a new Periphery contract." + }, + "depositNative(address,bytes32,address,uint256,bytes32,uint256,uint256,bytes32,uint32,uint32,uint32,bytes)": { + "notice": "Passthrough function to `depositV3()` on the SpokePool contract for native token deposits." + }, + "depositWithAuthorization(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),uint256,address,uint256),uint256,uint256,bytes,bytes)": { + "notice": "Deposits an EIP-3009 compliant Across input token into the Spoke Pool contract." + }, + "depositWithPermit(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),uint256,address,uint256),uint256,bytes,bytes)": { + "notice": "Deposits an EIP-2612 token Across input token into the Spoke Pool contract." + }, + "depositWithPermit2(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),uint256,address,uint256),((address,uint256),uint256,uint256),bytes)": { + "notice": "Uses permit2 to transfer and submit an Across deposit to the Spoke Pool contract." + }, + "domainSeparator()": { + "notice": "Returns the contract's EIP712 domain separator, used to sign hashed DepositData/SwapAndDepositData types." + }, + "permitNonces(address)": { + "notice": "Returns the current permit nonce for a user." + }, + "swapAndBridge(((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),address,address,uint8,uint256,uint256,bytes,bool,address,uint256))": { + "notice": "Swaps tokens on this chain via specified router before submitting Across deposit atomically. Caller can specify their slippage tolerance for the swap and Across deposit params." + }, + "swapAndBridgeWithAuthorization(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),address,address,uint8,uint256,uint256,bytes,bool,address,uint256),uint256,uint256,bytes,bytes)": { + "notice": "Swaps an EIP-3009 token on this chain via specified router before submitting Across deposit atomically. Caller can specify their slippage tolerance for the swap and Across deposit params." + }, + "swapAndBridgeWithPermit(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),address,address,uint8,uint256,uint256,bytes,bool,address,uint256),uint256,bytes,bytes)": { + "notice": "Swaps an EIP-2612 token on this chain via specified router before submitting Across deposit atomically. Caller can specify their slippage tolerance for the swap and Across deposit params." + }, + "swapAndBridgeWithPermit2(address,((uint256,address),(address,bytes32,uint256,address,bytes32,uint256,bytes32,uint32,uint32,uint32,bytes),address,address,uint8,uint256,uint256,bytes,bool,address,uint256),((address,uint256),uint256,uint256),bytes)": { + "notice": "Uses permit2 to transfer tokens from a user before swapping a token on this chain via specified router and submitting an Across deposit atomically. Caller can specify their slippage tolerance for the swap and Across deposit params." + } + }, + "notice": "Contract for performing more complex interactions with an Across spoke pool deployment.", + "version": 1 + }, + "storageLayout": { + "storage": [ + { + "astId": 3912, + "contract": "contracts/SpokePoolPeriphery.sol:SpokePoolPeriphery", + "label": "_status", + "offset": 0, + "slot": "0", + "type": "t_uint256" + }, + { + "astId": 5770, + "contract": "contracts/SpokePoolPeriphery.sol:SpokePoolPeriphery", + "label": "_nameFallback", + "offset": 0, + "slot": "1", + "type": "t_string_storage" + }, + { + "astId": 5772, + "contract": "contracts/SpokePoolPeriphery.sol:SpokePoolPeriphery", + "label": "_versionFallback", + "offset": 0, + "slot": "2", + "type": "t_string_storage" + }, + { + "astId": 14703, + "contract": "contracts/SpokePoolPeriphery.sol:SpokePoolPeriphery", + "label": "permitNonces", + "offset": 0, + "slot": "3", + "type": "t_mapping(t_address,t_uint256)" + } + ], + "types": { + "t_address": { + "encoding": "inplace", + "label": "address", + "numberOfBytes": "20" + }, + "t_mapping(t_address,t_uint256)": { + "encoding": "mapping", + "key": "t_address", + "label": "mapping(address => uint256)", + "numberOfBytes": "32", + "value": "t_uint256" + }, + "t_string_storage": { + "encoding": "bytes", + "label": "string", + "numberOfBytes": "32" + }, + "t_uint256": { + "encoding": "inplace", + "label": "uint256", + "numberOfBytes": "32" + } + } + } +} diff --git a/package.json b/package.json index fb539b8d1..6ab6760e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@across-protocol/contracts", - "version": "4.1.9", + "version": "4.1.10", "author": "UMA Team", "license": "AGPL-3.0-only", "repository": { diff --git a/script/utils/constants.json b/script/utils/constants.json index 8fc195ad7..a100bc20e 100644 --- a/script/utils/constants.json +++ b/script/utils/constants.json @@ -603,7 +603,8 @@ }, "999": { "cctpV2TokenMessenger": "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d", - "cctpV2MessageTransmitter": "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64" + "cctpV2MessageTransmitter": "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64", + "permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3" }, "1135": { "permit2": "0x000000000022D473030F116dDEE9F6B43aC78BA3" From a7327ea03815ae670367666a45df91dbfd6a1645 Mon Sep 17 00:00:00 2001 From: Dong-Ha Kim Date: Mon, 29 Sep 2025 14:02:33 +0200 Subject: [PATCH 2/2] fixup --- broadcast/deployed-addresses.json | 5 +++++ broadcast/deployed-addresses.md | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/broadcast/deployed-addresses.json b/broadcast/deployed-addresses.json index 4b3f5fc82..44d8ea350 100644 --- a/broadcast/deployed-addresses.json +++ b/broadcast/deployed-addresses.json @@ -492,6 +492,11 @@ "address": "0x5E7840E06fAcCb6d1c3b5F5E0d1d3d07F2829bba", "transaction_hash": "Unknown", "block_number": 13992522 + }, + "SpokePoolPeriphery": { + "address": "0xF1BF00D947267Da5cC63f8c8A60568c59FA31bCb", + "transaction_hash": "Unknown", + "block_number": 15142204 } } }, diff --git a/broadcast/deployed-addresses.md b/broadcast/deployed-addresses.md index 97af8342d..7faf26db3 100644 --- a/broadcast/deployed-addresses.md +++ b/broadcast/deployed-addresses.md @@ -536,6 +536,12 @@ This file contains the latest deployed smart contract addresses from the broadca - Transaction Hash: `Unknown` - Block Number: `13992522` +#### SpokePoolPeriphery + +- **SpokePoolPeriphery**: `0xF1BF00D947267Da5cC63f8c8A60568c59FA31bCb` + - Transaction Hash: `Unknown` + - Block Number: `15142204` + ### Lisk (Chain ID: 1135) #### SpokePool