+ );
+}
diff --git a/packages/client/src/component/Title.tsx b/packages/client/src/component/Title.tsx
new file mode 100644
index 0000000..b65af24
--- /dev/null
+++ b/packages/client/src/component/Title.tsx
@@ -0,0 +1,7 @@
+export function Title() {
+ return (
+
+ Battle of layers
+
+ );
+}
diff --git a/packages/client/src/constant/index.ts b/packages/client/src/constant/index.ts
new file mode 100644
index 0000000..92d4a8f
--- /dev/null
+++ b/packages/client/src/constant/index.ts
@@ -0,0 +1,18 @@
+import { Hex } from "viem";
+import {
+ arbitrumSepolia,
+ avalancheFuji,
+ baseSepolia,
+ bscTestnet,
+ optimismSepolia,
+} from "viem/chains";
+
+export const TroyAddress = "0x10d5617ef73E62545F45017A0F85847c081b9fcE";
+
+export const TrojanHorseAddress: Record = {
+ [optimismSepolia.id]: "0x70116e215a2188E4D0b2eC8df2f2F44B85e7B9BF",
+ [arbitrumSepolia.id]: "0x9de2aF3C2c3B111b0BFa1e2a2068BeB74a1B9347",
+ [baseSepolia.id]: "0xFE823dddB1e0f5162a1A500672FB06f11142fF14",
+ [avalancheFuji.id]: "0xD8224921832bc7Fb86225B5092D7156c05751ef8",
+ [bscTestnet.id]: "0x493A69ec1de995B5b0fB968Bc67022D1C54E490e",
+};
diff --git a/packages/client/src/hooks/useChampion.tsx b/packages/client/src/hooks/useChampion.tsx
new file mode 100644
index 0000000..c6a69d5
--- /dev/null
+++ b/packages/client/src/hooks/useChampion.tsx
@@ -0,0 +1,17 @@
+import { useReadContract } from "wagmi";
+import { TroyAbi } from "../abis/Troy";
+import { TroyAddress } from "../constant";
+import { sepolia } from "viem/chains";
+
+export function useChampion() {
+ const troyStorage = useReadContract({
+ abi: TroyAbi,
+ address: TroyAddress,
+ functionName: "readStorageValue",
+ chainId: sepolia.id,
+ });
+
+ const champion = troyStorage.data?.championChainId;
+ const championSoldiersAmount = troyStorage.data?.soldierAmount;
+ return { champion, championSoldiersAmount };
+}
diff --git a/packages/client/src/index.css b/packages/client/src/index.css
index b0e6fff..b5c61c9 100644
--- a/packages/client/src/index.css
+++ b/packages/client/src/index.css
@@ -1,76 +1,3 @@
@tailwind base;
- @tailwind components;
- @tailwind utilities;
-
- @layer base {
- :root {
- --background: 0 0% 100%;
- --foreground: 222.2 84% 4.9%;
-
- --card: 0 0% 100%;
- --card-foreground: 222.2 84% 4.9%;
-
- --popover: 0 0% 100%;
- --popover-foreground: 222.2 84% 4.9%;
-
- --primary: 222.2 47.4% 11.2%;
- --primary-foreground: 210 40% 98%;
-
- --secondary: 210 40% 96.1%;
- --secondary-foreground: 222.2 47.4% 11.2%;
-
- --muted: 210 40% 96.1%;
- --muted-foreground: 215.4 16.3% 46.9%;
-
- --accent: 210 40% 96.1%;
- --accent-foreground: 222.2 47.4% 11.2%;
-
- --destructive: 0 84.2% 60.2%;
- --destructive-foreground: 210 40% 98%;
-
- --border: 214.3 31.8% 91.4%;
- --input: 214.3 31.8% 91.4%;
- --ring: 222.2 84% 4.9%;
-
- --radius: 0.5rem;
- }
-
- .dark {
- --background: 222.2 84% 4.9%;
- --foreground: 210 40% 98%;
-
- --card: 222.2 84% 4.9%;
- --card-foreground: 210 40% 98%;
-
- --popover: 222.2 84% 4.9%;
- --popover-foreground: 210 40% 98%;
-
- --primary: 210 40% 98%;
- --primary-foreground: 222.2 47.4% 11.2%;
-
- --secondary: 217.2 32.6% 17.5%;
- --secondary-foreground: 210 40% 98%;
-
- --muted: 217.2 32.6% 17.5%;
- --muted-foreground: 215 20.2% 65.1%;
-
- --accent: 217.2 32.6% 17.5%;
- --accent-foreground: 210 40% 98%;
-
- --destructive: 0 62.8% 30.6%;
- --destructive-foreground: 210 40% 98%;
-
- --border: 217.2 32.6% 17.5%;
- --input: 217.2 32.6% 17.5%;
- --ring: 212.7 26.8% 83.9%;
- }
- }
-
- @layer base {
- * {
- @apply border-border;
- }
- body {
- @apply bg-background text-foreground;
- }
- }
\ No newline at end of file
+@tailwind components;
+@tailwind utilities;
diff --git a/packages/client/src/utils/getChainImage.ts b/packages/client/src/utils/getChainImage.ts
new file mode 100644
index 0000000..e611d16
--- /dev/null
+++ b/packages/client/src/utils/getChainImage.ts
@@ -0,0 +1,19 @@
+export function getChainImage(chainId: number) {
+ switch (chainId) {
+ // bnb chain
+ case 97:
+ return "/assets/layers/bnb.png";
+ // arb sepolia
+ case 421614:
+ return "/assets/layers/arb.png";
+ // base sepolia
+ case 84532:
+ return "/assets/layers/base.png";
+ // op sepolia
+ case 11155420:
+ return "/assets/layers/op.png";
+ // fujin
+ case 43113:
+ return "/assets/layers/avax.png";
+ }
+}
diff --git a/packages/client/tailwind.config.js b/packages/client/tailwind.config.js
index c4125bd..a7e24e2 100644
--- a/packages/client/tailwind.config.js
+++ b/packages/client/tailwind.config.js
@@ -1,77 +1,11 @@
/** @type {import('tailwindcss').Config} */
-module.exports = {
- darkMode: ["class"],
- content: [
- "./pages/**/*.{ts,tsx}",
- "./components/**/*.{ts,tsx}",
- "./app/**/*.{ts,tsx}",
- "./src/**/*.{ts,tsx}",
- ],
- prefix: "",
+export default {
+ content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
- container: {
- center: true,
- padding: "2rem",
- screens: {
- "2xl": "1400px",
- },
- },
- extend: {
- colors: {
- border: "hsl(var(--border))",
- input: "hsl(var(--input))",
- ring: "hsl(var(--ring))",
- background: "hsl(var(--background))",
- foreground: "hsl(var(--foreground))",
- primary: {
- DEFAULT: "hsl(var(--primary))",
- foreground: "hsl(var(--primary-foreground))",
- },
- secondary: {
- DEFAULT: "hsl(var(--secondary))",
- foreground: "hsl(var(--secondary-foreground))",
- },
- destructive: {
- DEFAULT: "hsl(var(--destructive))",
- foreground: "hsl(var(--destructive-foreground))",
- },
- muted: {
- DEFAULT: "hsl(var(--muted))",
- foreground: "hsl(var(--muted-foreground))",
- },
- accent: {
- DEFAULT: "hsl(var(--accent))",
- foreground: "hsl(var(--accent-foreground))",
- },
- popover: {
- DEFAULT: "hsl(var(--popover))",
- foreground: "hsl(var(--popover-foreground))",
- },
- card: {
- DEFAULT: "hsl(var(--card))",
- foreground: "hsl(var(--card-foreground))",
- },
- },
- borderRadius: {
- lg: "var(--radius)",
- md: "calc(var(--radius) - 2px)",
- sm: "calc(var(--radius) - 4px)",
- },
- keyframes: {
- "accordion-down": {
- from: { height: "0" },
- to: { height: "var(--radix-accordion-content-height)" },
- },
- "accordion-up": {
- from: { height: "var(--radix-accordion-content-height)" },
- to: { height: "0" },
- },
- },
- animation: {
- "accordion-down": "accordion-down 0.2s ease-out",
- "accordion-up": "accordion-up 0.2s ease-out",
- },
- },
+ extend: {},
+ },
+ plugins: [require("daisyui")],
+ daisyui: {
+ themes: ["light", "dark", "cupcake"],
},
- plugins: [import("tailwindcss-animate"), import("daisyui")],
};
diff --git a/packages/contracts/deploy/001_deploy_Troy.ts b/packages/contracts/deploy/001_deploy_Troy.ts
index 544590f..cd30c23 100644
--- a/packages/contracts/deploy/001_deploy_Troy.ts
+++ b/packages/contracts/deploy/001_deploy_Troy.ts
@@ -23,9 +23,13 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
args: [deployer, router],
},
},
+ upgradeFunction: {
+ methodName: "upgradeToAndCall",
+ upgradeArgs: ["{implementation}", "{data}"],
+ },
checkProxyAdmin: false,
},
- deterministicDeployment: keccak256(stringToBytes("Troy")),
+ deterministicDeployment: keccak256(stringToBytes("Troy4")),
log: true,
});
};
diff --git a/packages/contracts/deploy/002_deploy_TrajonHorse.ts b/packages/contracts/deploy/002_deploy_TrajonHorse.ts
index b10358f..7e9f7c5 100644
--- a/packages/contracts/deploy/002_deploy_TrajonHorse.ts
+++ b/packages/contracts/deploy/002_deploy_TrajonHorse.ts
@@ -14,9 +14,9 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
const aggregator = getAggregator(chainId);
// manually set receiver
- const receiver = "0x60688b3ba8816b4003b72f9b3927c3bb8e598005";
+ const receiver = "0x10d5617ef73E62545F45017A0F85847c081b9fcE";
- await deploy("TrajonHorse", {
+ await deploy("TrojanHorse", {
from: deployer,
args: [],
proxy: {
@@ -28,16 +28,16 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
// chain selector
args: [deployer, router, aggregator, "16015286601757825753", receiver],
},
- onUpgrade: {
- methodName: "upgradeAndCall",
- args: ["{implementation}", "0x"],
- },
+ },
+ upgradeFunction: {
+ methodName: "upgradeToAndCall",
+ upgradeArgs: ["{implementation}", "{data}"],
},
checkProxyAdmin: false,
},
- deterministicDeployment: keccak256(stringToBytes("TrajonHorse")),
+ deterministicDeployment: keccak256(stringToBytes("TrojanHorse")),
log: true,
});
};
export default func;
-func.tags = ["TrajonHorse"];
+func.tags = ["TrojanHorse"];
diff --git a/packages/contracts/deployments/arb_sepolia/.chainId b/packages/contracts/deployments/arb_sepolia/.chainId
new file mode 100644
index 0000000..71ba4d6
--- /dev/null
+++ b/packages/contracts/deployments/arb_sepolia/.chainId
@@ -0,0 +1 @@
+421614
\ No newline at end of file
diff --git a/packages/contracts/deployments/arb_sepolia/TrojanHorse.json b/packages/contracts/deployments/arb_sepolia/TrojanHorse.json
new file mode 100644
index 0000000..25edf28
--- /dev/null
+++ b/packages/contracts/deployments/arb_sepolia/TrojanHorse.json
@@ -0,0 +1,482 @@
+{
+ "address": "0x9de2aF3C2c3B111b0BFa1e2a2068BeB74a1B9347",
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "previousAdmin",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "newAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "AdminChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "beacon",
+ "type": "address"
+ }
+ ],
+ "name": "BeaconUpgraded",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "Upgraded",
+ "type": "event"
+ },
+ {
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "stateMutability": "payable",
+ "type": "receive"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "target",
+ "type": "address"
+ }
+ ],
+ "name": "AddressEmptyCode",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "ERC1967InvalidImplementation",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "ERC1967NonPayable",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "FailedInnerCall",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidInitialization",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotEnoughBalance",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotInitializing",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableInvalidOwner",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableUnauthorizedAccount",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "UUPSUnauthorizedCallContext",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "slot",
+ "type": "bytes32"
+ }
+ ],
+ "name": "UUPSUnsupportedProxiableUUID",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ }
+ ],
+ "name": "HorseSent",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint64",
+ "name": "version",
+ "type": "uint64"
+ }
+ ],
+ "name": "Initialized",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferStarted",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferred",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "UPGRADE_INTERFACE_VERSION",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "acceptOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "getFee",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "router_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "aggregator_",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "chainSelector_",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "receiver_",
+ "type": "address"
+ }
+ ],
+ "name": "initialize",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "owner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "pendingOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "proxiableUUID",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "renounceOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "sendHorse",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "transferOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newImplementation",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "upgradeToAndCall",
+ "outputs": [],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "_logic",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "_data",
+ "type": "bytes"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "constructor"
+ }
+ ],
+ "transactionHash": "0xef2fd7e5a66ef150727f3c571110beabf9474b62429ca69d8eb94406e7fecc6c",
+ "receipt": {
+ "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
+ "from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "contractAddress": null,
+ "transactionIndex": 3,
+ "gasUsed": "375147",
+ "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000002000101000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000800000004000000000000000080000000000000000000000000000000000100000000000000000000000000000000000000000004000000000020000000000000000000000000000000000004000400020000000120000000000000000000000000000000000000000000008000000000000000000000",
+ "blockHash": "0x904029e896fe9b9b3732e748041ae2751b4567c30ca78c33544e710e0746341f",
+ "transactionHash": "0xef2fd7e5a66ef150727f3c571110beabf9474b62429ca69d8eb94406e7fecc6c",
+ "logs": [
+ {
+ "transactionIndex": 3,
+ "blockNumber": 33378896,
+ "transactionHash": "0xef2fd7e5a66ef150727f3c571110beabf9474b62429ca69d8eb94406e7fecc6c",
+ "address": "0x9de2aF3C2c3B111b0BFa1e2a2068BeB74a1B9347",
+ "topics": [
+ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
+ "0x000000000000000000000000f92382e7b0fd233364e1042fdc1a948178b26d17"
+ ],
+ "data": "0x",
+ "logIndex": 2,
+ "blockHash": "0x904029e896fe9b9b3732e748041ae2751b4567c30ca78c33544e710e0746341f"
+ },
+ {
+ "transactionIndex": 3,
+ "blockNumber": 33378896,
+ "transactionHash": "0xef2fd7e5a66ef150727f3c571110beabf9474b62429ca69d8eb94406e7fecc6c",
+ "address": "0x9de2aF3C2c3B111b0BFa1e2a2068BeB74a1B9347",
+ "topics": [
+ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "0x000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560"
+ ],
+ "data": "0x",
+ "logIndex": 3,
+ "blockHash": "0x904029e896fe9b9b3732e748041ae2751b4567c30ca78c33544e710e0746341f"
+ },
+ {
+ "transactionIndex": 3,
+ "blockNumber": 33378896,
+ "transactionHash": "0xef2fd7e5a66ef150727f3c571110beabf9474b62429ca69d8eb94406e7fecc6c",
+ "address": "0x9de2aF3C2c3B111b0BFa1e2a2068BeB74a1B9347",
+ "topics": [
+ "0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"
+ ],
+ "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
+ "logIndex": 4,
+ "blockHash": "0x904029e896fe9b9b3732e748041ae2751b4567c30ca78c33544e710e0746341f"
+ }
+ ],
+ "blockNumber": 33378896,
+ "cumulativeGasUsed": "517970",
+ "status": 1,
+ "byzantium": true
+ },
+ "args": [
+ "0xF92382E7b0FD233364e1042fDc1a948178b26D17",
+ "0x530b97a4000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb05600000000000000000000000002a9c5afb0d0e4bab2bcdae109ec4b0c4be15a165000000000000000000000000d30e2101a97dcbaebcbc04f14c3f624e67a35165000000000000000000000000000000000000000000000000de41ba4fc9d91ad900000000000000000000000010d5617ef73e62545f45017a0f85847c081b9fce"
+ ],
+ "numDeployments": 1,
+ "bytecode": "0x60806040526040516107353803806107358339810160408190526100229161031e565b61002e82826000610035565b505061043b565b61003e8361006b565b60008251118061004b5750805b156100665761006483836100ab60201b6100291760201c565b505b505050565b610074816100d7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100d0838360405180606001604052806027815260200161070e602791396101a9565b9392505050565b6100ea8161022260201b6100551760201c565b6101515760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61023160201b6100641760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060600080856001600160a01b0316856040516101c691906103ec565b600060405180830381855af49150503d8060008114610201576040519150601f19603f3d011682016040523d82523d6000602084013e610206565b606091505b50909250905061021886838387610234565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102a0578251610299576001600160a01b0385163b6102995760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610148565b50816102aa565b6102aa83836102b2565b949350505050565b8151156102c25781518083602001fd5b8060405162461bcd60e51b81526004016101489190610408565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561030d5781810151838201526020016102f5565b838111156100645750506000910152565b6000806040838503121561033157600080fd5b82516001600160a01b038116811461034857600080fd5b60208401519092506001600160401b038082111561036557600080fd5b818501915085601f83011261037957600080fd5b81518181111561038b5761038b6102dc565b604051601f8201601f19908116603f011681019083821181831017156103b3576103b36102dc565b816040528281528860208487010111156103cc57600080fd5b6103dd8360208301602088016102f2565b80955050505050509250929050565b600082516103fe8184602087016102f2565b9190910192915050565b60208152600082518060208401526104278160408501602087016102f2565b601f01601f19169190910160400192915050565b6102c48061044a6000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",
+ "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033",
+ "execute": {
+ "methodName": "initialize",
+ "args": [
+ "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "0x2a9C5afB0d0e4BAb2BCdaE109EC4b0c4Be15a165",
+ "0xd30e2101a97dcbAeBCBC04F14C3f624E67A35165",
+ "16015286601757825753",
+ "0x10d5617ef73E62545F45017A0F85847c081b9fcE"
+ ]
+ },
+ "implementation": "0xF92382E7b0FD233364e1042fDc1a948178b26D17"
+}
\ No newline at end of file
diff --git a/packages/contracts/deployments/arb_sepolia/TrojanHorse_Implementation.json b/packages/contracts/deployments/arb_sepolia/TrojanHorse_Implementation.json
new file mode 100644
index 0000000..976d580
--- /dev/null
+++ b/packages/contracts/deployments/arb_sepolia/TrojanHorse_Implementation.json
@@ -0,0 +1,480 @@
+{
+ "address": "0xF92382E7b0FD233364e1042fDc1a948178b26D17",
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "target",
+ "type": "address"
+ }
+ ],
+ "name": "AddressEmptyCode",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "ERC1967InvalidImplementation",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "ERC1967NonPayable",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "FailedInnerCall",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidInitialization",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotEnoughBalance",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotInitializing",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableInvalidOwner",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableUnauthorizedAccount",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "UUPSUnauthorizedCallContext",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "slot",
+ "type": "bytes32"
+ }
+ ],
+ "name": "UUPSUnsupportedProxiableUUID",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ }
+ ],
+ "name": "HorseSent",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint64",
+ "name": "version",
+ "type": "uint64"
+ }
+ ],
+ "name": "Initialized",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferStarted",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferred",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "Upgraded",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "UPGRADE_INTERFACE_VERSION",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "acceptOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "getFee",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "router_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "aggregator_",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "chainSelector_",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "receiver_",
+ "type": "address"
+ }
+ ],
+ "name": "initialize",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "owner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "pendingOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "proxiableUUID",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "renounceOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "sendHorse",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "transferOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newImplementation",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "upgradeToAndCall",
+ "outputs": [],
+ "stateMutability": "payable",
+ "type": "function"
+ }
+ ],
+ "transactionHash": "0x45d299bd3a1acc8b0832f3b8bb3b0519a4387c5aadd283ccd24004e95529bd55",
+ "receipt": {
+ "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
+ "from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "contractAddress": null,
+ "transactionIndex": 2,
+ "gasUsed": "2057987",
+ "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "blockHash": "0x9dc99c55d83ffd047f8124a00935d29435fc3c42668e94154effb357fd1c0051",
+ "transactionHash": "0x45d299bd3a1acc8b0832f3b8bb3b0519a4387c5aadd283ccd24004e95529bd55",
+ "logs": [],
+ "blockNumber": 33378842,
+ "cumulativeGasUsed": "3615875",
+ "status": 1,
+ "byzantium": true
+ },
+ "args": [],
+ "numDeployments": 1,
+ "solcInputHash": "072036421b95051681b93d5e2153ae28",
+ "metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ERC1967InvalidImplementation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC1967NonPayable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedInnerCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotEnoughBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UUPSUnauthorizedCallContext\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"slot\",\"type\":\"bytes32\"}],\"name\":\"UUPSUnsupportedProxiableUUID\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"soldierAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"}],\"name\":\"HorseSent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"UPGRADE_INTERFACE_VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fundForSoldiers\",\"type\":\"uint256\"}],\"name\":\"getFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"soldierAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"router_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"aggregator_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainSelector_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fundForSoldiers\",\"type\":\"uint256\"}],\"name\":\"sendHorse\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"AddressEmptyCode(address)\":[{\"details\":\"There's no code at `target` (it is not a contract).\"}],\"ERC1967InvalidImplementation(address)\":[{\"details\":\"The `implementation` of the proxy is invalid.\"}],\"ERC1967NonPayable()\":[{\"details\":\"An upgrade function sees `msg.value > 0` that may be lost.\"}],\"FailedInnerCall()\":[{\"details\":\"A call to an address target failed. The target may have reverted.\"}],\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"UUPSUnauthorizedCallContext()\":[{\"details\":\"The call is from an unauthorized context.\"}],\"UUPSUnsupportedProxiableUUID(bytes32)\":[{\"details\":\"The storage `slot` is unsupported as a UUID.\"}]},\"events\":{\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"acceptOwnership()\":{\"details\":\"The new owner accepts the ownership transfer.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pendingOwner()\":{\"details\":\"Returns the address of the pending owner.\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"sendHorse(uint256)\":{\"returns\":{\"messageId\":\"The ID of the message that was sent.\"}},\"transferOwnership(address)\":{\"details\":\"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"sendHorse(uint256)\":{\"notice\":\"Sends data to receiver on the destination chain.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/TrojanHorse.sol\":\"TrojanHorse\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {Client} from \\\"../libraries/Client.sol\\\";\\n\\ninterface IRouterClient {\\n error UnsupportedDestinationChain(uint64 destChainSelector);\\n error InsufficientFeeTokenAmount();\\n error InvalidMsgValue();\\n\\n /// @notice Checks if the given chain ID is supported for sending/receiving.\\n /// @param chainSelector The chain to check.\\n /// @return supported is true if it is supported, false if not.\\n function isChainSupported(uint64 chainSelector) external view returns (bool supported);\\n\\n /// @notice Gets a list of all supported tokens which can be sent or received\\n /// to/from a given chain id.\\n /// @param chainSelector The chainSelector.\\n /// @return tokens The addresses of all tokens that are supported.\\n function getSupportedTokens(uint64 chainSelector) external view returns (address[] memory tokens);\\n\\n /// @param destinationChainSelector The destination chainSelector\\n /// @param message The cross-chain CCIP message including data and/or tokens\\n /// @return fee returns execution fee for the message\\n /// delivery to destination chain, denominated in the feeToken specified in the message.\\n /// @dev Reverts with appropriate reason upon invalid message.\\n function getFee(\\n uint64 destinationChainSelector,\\n Client.EVM2AnyMessage memory message\\n ) external view returns (uint256 fee);\\n\\n /// @notice Request a message to be sent to the destination chain\\n /// @param destinationChainSelector The destination chain ID\\n /// @param message The cross-chain CCIP message including data and/or tokens\\n /// @return messageId The message ID\\n /// @dev Note if msg.value is larger than the required fee (from getFee) we accept\\n /// the overpayment with no refund.\\n /// @dev Reverts with appropriate reason upon invalid message.\\n function ccipSend(\\n uint64 destinationChainSelector,\\n Client.EVM2AnyMessage calldata message\\n ) external payable returns (bytes32);\\n}\\n\",\"keccak256\":\"0x7f2fdd93e516b7476c6fab099f6806adf5ceaf399b0cc415f6b9ede890f2379b\",\"license\":\"MIT\"},\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// End consumer library.\\nlibrary Client {\\n /// @dev RMN depends on this struct, if changing, please notify the RMN maintainers.\\n struct EVMTokenAmount {\\n address token; // token address on the local chain.\\n uint256 amount; // Amount of tokens.\\n }\\n\\n struct Any2EVMMessage {\\n bytes32 messageId; // MessageId corresponding to ccipSend on source.\\n uint64 sourceChainSelector; // Source chain selector.\\n bytes sender; // abi.decode(sender) if coming from an EVM chain.\\n bytes data; // payload sent in original message.\\n EVMTokenAmount[] destTokenAmounts; // Tokens and their amounts in their destination chain representation.\\n }\\n\\n // If extraArgs is empty bytes, the default is 200k gas limit.\\n struct EVM2AnyMessage {\\n bytes receiver; // abi.encode(receiver address) for dest EVM chains\\n bytes data; // Data payload\\n EVMTokenAmount[] tokenAmounts; // Token transfers\\n address feeToken; // Address of feeToken. address(0) means you will send msg.value.\\n bytes extraArgs; // Populate this with _argsToBytes(EVMExtraArgsV1)\\n }\\n\\n // bytes4(keccak256(\\\"CCIP EVMExtraArgsV1\\\"));\\n bytes4 public constant EVM_EXTRA_ARGS_V1_TAG = 0x97a657c9;\\n struct EVMExtraArgsV1 {\\n uint256 gasLimit;\\n }\\n\\n function _argsToBytes(EVMExtraArgsV1 memory extraArgs) internal pure returns (bytes memory bts) {\\n return abi.encodeWithSelector(EVM_EXTRA_ARGS_V1_TAG, extraArgs);\\n }\\n}\\n\",\"keccak256\":\"0x8af3ac1085c87342373772fb1a0107c7b90258e6bfed318ab2a601a14477e679\",\"license\":\"MIT\"},\"@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0xfe4e8bb4861bb3860ba890ab91a3b818ec66e5a8f544fb608cfcb73f433472cd\",\"license\":\"MIT\"},\"@chainlink/contracts/src/v0.8/shared/interfaces/LinkTokenInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface LinkTokenInterface {\\n function allowance(address owner, address spender) external view returns (uint256 remaining);\\n\\n function approve(address spender, uint256 value) external returns (bool success);\\n\\n function balanceOf(address owner) external view returns (uint256 balance);\\n\\n function decimals() external view returns (uint8 decimalPlaces);\\n\\n function decreaseApproval(address spender, uint256 addedValue) external returns (bool success);\\n\\n function increaseApproval(address spender, uint256 subtractedValue) external;\\n\\n function name() external view returns (string memory tokenName);\\n\\n function symbol() external view returns (string memory tokenSymbol);\\n\\n function totalSupply() external view returns (uint256 totalTokensIssued);\\n\\n function transfer(address to, uint256 value) external returns (bool success);\\n\\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool success);\\n\\n function transferFrom(address from, address to, uint256 value) external returns (bool success);\\n}\\n\",\"keccak256\":\"0xac02fbc0c7d194e525a71f524d1f7c472df73e19c2b527d7b529badaeaf0ec51\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {OwnableUpgradeable} from \\\"./OwnableUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is specified at deployment time in the constructor for `Ownable`. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable2Step\\n struct Ownable2StepStorage {\\n address _pendingOwner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable2Step\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant Ownable2StepStorageLocation = 0x237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00;\\n\\n function _getOwnable2StepStorage() private pure returns (Ownable2StepStorage storage $) {\\n assembly {\\n $.slot := Ownable2StepStorageLocation\\n }\\n }\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n function __Ownable2Step_init() internal onlyInitializing {\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n return $._pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n $._pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n delete $._pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n if (pendingOwner() != sender) {\\n revert OwnableUnauthorizedAccount(sender);\\n }\\n _transferOwnership(sender);\\n }\\n}\\n\",\"keccak256\":\"0xbca4a4f66d98028293dba695851d1b20d3e0ba2fff7453fb241f192fa3fc6b6f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\\\";\\nimport {Initializable} from \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3f13b947637c4969c0644cab4ef399cdc4b67f101463b8775c5a43b118558e53\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set 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(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\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\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"},\"src/TrojanHorse.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\npragma solidity >=0.8.25;\\n\\nimport { UUPSUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport { Ownable2StepUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\nimport { IRouterClient } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol\\\";\\nimport { Client } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\\\";\\nimport { LinkTokenInterface } from \\\"@chainlink/contracts/src/v0.8/shared/interfaces/LinkTokenInterface.sol\\\";\\nimport { AggregatorV3Interface } from \\\"@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\\\";\\n\\ncontract TrojanHorse is UUPSUpgradeable, Ownable2StepUpgradeable {\\n struct TrajonHorseStorage {\\n IRouterClient router;\\n AggregatorV3Interface aggregator;\\n uint64 destinationChainSelector;\\n address receiver;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"battleoflayers.storage.trajonhorse\\\")) - 1)) & ~ bytes32(uint256(0xff))\\n //\\n bytes32 private constant TrajanHorseStorageLocation =\\n 0xe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00;\\n\\n // Event emitted when a message is sent to another chain.\\n event HorseSent( // The unique ID of the CCIP message.\\n bytes32 indexed messageId, uint256 soldierAmount, uint256 fees);\\n\\n error NotEnoughBalance();\\n\\n function _getTrajanHorseStorage() internal pure returns (TrajonHorseStorage storage $) {\\n assembly {\\n $.slot := TrajanHorseStorageLocation\\n }\\n }\\n\\n function initialize(\\n address owner_,\\n address router_,\\n address aggregator_,\\n uint256 chainSelector_,\\n address receiver_\\n )\\n external\\n initializer\\n {\\n _transferOwnership(owner_);\\n\\n TrajonHorseStorage storage $ = _getTrajanHorseStorage();\\n $.router = IRouterClient(router_);\\n $.aggregator = AggregatorV3Interface(aggregator_);\\n $.destinationChainSelector = uint64(chainSelector_);\\n $.receiver = receiver_;\\n }\\n\\n // only owner can upgrade\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner { }\\n\\n // function\\n\\n /// @notice Sends data to receiver on the destination chain.\\n /// @return messageId The ID of the message that was sent.\\n function sendHorse(uint256 fundForSoldiers) external payable onlyOwner returns (bytes32 messageId) {\\n (, int256 answer,,,) = _getTrajanHorseStorage().aggregator.latestRoundData();\\n uint8 decimal = _getTrajanHorseStorage().aggregator.decimals();\\n uint256 soldierAmount = fundForSoldiers * uint256(answer) / (10 ** decimal * 1 ether);\\n\\n address receiver = _getTrajanHorseStorage().receiver;\\n uint64 destinationChainSelector = _getTrajanHorseStorage().destinationChainSelector;\\n\\n // encode data\\n bytes memory data = abi.encode(block.chainid, soldierAmount);\\n\\n // Create an EVM2AnyMessage struct in memory with necessary information for sending a cross-chain message\\n Client.EVM2AnyMessage memory evm2AnyMessage = Client.EVM2AnyMessage({\\n receiver: abi.encode(receiver), // ABI-encoded\\n data: data, // ABI-encoded string\\n tokenAmounts: new Client.EVMTokenAmount[](0), // Empty array indicating no tokens are being sent\\n extraArgs: Client._argsToBytes(\\n // Additional arguments, setting gas limit\\n Client.EVMExtraArgsV1({ gasLimit: 200_000 })\\n ),\\n // Set the feeToken address, use native token\\n feeToken: address(0)\\n });\\n\\n // Get the fee required to send the message\\n uint256 fees = _getTrajanHorseStorage().router.getFee(destinationChainSelector, evm2AnyMessage);\\n\\n if (msg.value - fundForSoldiers < fees) {\\n revert NotEnoughBalance();\\n }\\n\\n // Send the message through the router and store the returned message ID\\n messageId = _getTrajanHorseStorage().router.ccipSend{ value: fees }(destinationChainSelector, evm2AnyMessage);\\n\\n // Emit an event with message details\\n emit HorseSent(messageId, soldierAmount, fees);\\n\\n // Return the message ID\\n return messageId;\\n }\\n\\n function getFee(uint256 fundForSoldiers) public view returns (uint256 fees, uint256 soldierAmount) {\\n (, int256 answer,,,) = _getTrajanHorseStorage().aggregator.latestRoundData();\\n uint8 decimal = _getTrajanHorseStorage().aggregator.decimals();\\n soldierAmount = fundForSoldiers * uint256(answer) / (10 ** decimal * 1 ether);\\n\\n address receiver = _getTrajanHorseStorage().receiver;\\n uint64 destinationChainSelector = _getTrajanHorseStorage().destinationChainSelector;\\n\\n // encode data\\n bytes memory data = abi.encode(block.chainid, soldierAmount);\\n\\n // Create an EVM2AnyMessage struct in memory with necessary information for sending a cross-chain message\\n Client.EVM2AnyMessage memory evm2AnyMessage = Client.EVM2AnyMessage({\\n receiver: abi.encode(receiver), // ABI-encoded\\n data: data, // ABI-encoded string\\n tokenAmounts: new Client.EVMTokenAmount[](0), // Empty array indicating no tokens are being sent\\n extraArgs: Client._argsToBytes(\\n // Additional arguments, setting gas limit\\n Client.EVMExtraArgsV1({ gasLimit: 200_000 })\\n ),\\n // Set the feeToken address, use native token\\n feeToken: address(0)\\n });\\n\\n // Get the fee required to send the message\\n fees = _getTrajanHorseStorage().router.getFee(destinationChainSelector, evm2AnyMessage);\\n }\\n}\\n\",\"keccak256\":\"0x5b64ab80ba7dfcf5e7ecf203ca6c746d62740c92b7190db91a93f4587f7b6155\",\"license\":\"UNLICENSED\"}},\"version\":1}",
+ "bytecode": "0x60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff16815250348015604257600080fd5b5060805161244961006c60003960008181610f6d01528181610fc2015261117d01526124496000f3fe60806040526004361061009c5760003560e01c806379ba50971161006457806379ba5097146101585780638da5cb5b1461016f578063ad3cb1cc1461019a578063e30c3978146101c5578063f2fde38b146101f0578063fcee45f4146102195761009c565b80634f1ef286146100a157806352d1902d146100bd578063530b97a4146100e8578063715018a61461011157806374af8ff514610128575b600080fd5b6100bb60048036038101906100b691906119e5565b610257565b005b3480156100c957600080fd5b506100d2610276565b6040516100df9190611a5a565b60405180910390f35b3480156100f457600080fd5b5061010f600480360381019061010a9190611aab565b6102a9565b005b34801561011d57600080fd5b5061012661053d565b005b610142600480360381019061013d9190611b26565b610551565b60405161014f9190611a5a565b60405180910390f35b34801561016457600080fd5b5061016d610a00565b005b34801561017b57600080fd5b50610184610a8f565b6040516101919190611b62565b60405180910390f35b3480156101a657600080fd5b506101af610ac7565b6040516101bc9190611bfc565b60405180910390f35b3480156101d157600080fd5b506101da610b00565b6040516101e79190611b62565b60405180910390f35b3480156101fc57600080fd5b5061021760048036038101906102129190611c1e565b610b38565b005b34801561022557600080fd5b50610240600480360381019061023b9190611b26565b610bf4565b60405161024e929190611c5a565b60405180910390f35b61025f610f6b565b61026882611051565b610272828261105c565b5050565b600061028061117b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b60006102b3611202565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156103015750825b9050600060018367ffffffffffffffff16148015610336575060003073ffffffffffffffffffffffffffffffffffffffff163b145b905081158015610344575080155b1561037b576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156103cb5760018560000160086101000a81548160ff0219169083151502179055505b6103d48a61122a565b60006103de61126a565b9050898160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550888160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550878160010160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550868160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505083156105315760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516105289190611cdc565b60405180910390a15b50505050505050505050565b610545611292565b61054f600061122a565b565b600061055b611292565b600061056561126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156105d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f79190611d84565b505050915050600061060761126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610675573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106999190611e38565b90506000670de0b6b3a764000082600a6106b39190611fc7565b6106bd9190612012565b83866106c99190612012565b6106d39190612083565b905060006106df61126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600061070f61126a565b60010160149054906101000a900467ffffffffffffffff1690506000468460405160200161073e929190611c5a565b604051602081830303815290604052905060006040518060a001604052808560405160200161076d9190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff8111156107a2576107a16118ba565b5b6040519080825280602002602001820160405280156107db57816020015b6107c86117fd565b8152602001906001900390816107c05790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610818604051806020016040528062030d40815250611319565b8152509050600061082761126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded85846040518363ffffffff1660e01b815260040161088592919061229f565b602060405180830381865afa1580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c691906122cf565b9050808a346108d591906122fc565b101561090d576040517fad3a8b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61091561126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166396f4e9f98286856040518463ffffffff1660e01b815260040161097492919061229f565b60206040518083038185885af1158015610992573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906109b7919061235c565b9850887faf4d8a84b234410af70315b833c476a761b33559f391cf26d8f3bf7baa5f12ee87836040516109eb929190611c5a565b60405180910390a25050505050505050919050565b6000610a0a611398565b90508073ffffffffffffffffffffffffffffffffffffffff16610a2b610b00565b73ffffffffffffffffffffffffffffffffffffffff1614610a8357806040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a7a9190611b62565b60405180910390fd5b610a8c8161122a565b50565b600080610a9a6113a0565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b600080610b0b6113c8565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b610b40611292565b6000610b4a6113c8565b9050818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff16610bae610a8f565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b6000806000610c0161126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c939190611d84565b5050509150506000610ca361126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d359190611e38565b9050670de0b6b3a764000081600a610d4d9190611fc7565b610d579190612012565b8286610d639190612012565b610d6d9190612083565b92506000610d7961126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000610da961126a565b60010160149054906101000a900467ffffffffffffffff16905060004686604051602001610dd8929190611c5a565b604051602081830303815290604052905060006040518060a0016040528085604051602001610e079190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff811115610e3c57610e3b6118ba565b5b604051908082528060200260200182016040528015610e7557816020015b610e626117fd565b815260200190600190039081610e5a5790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610eb2604051806020016040528062030d40815250611319565b8152509050610ebf61126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded84836040518363ffffffff1660e01b8152600401610f1d92919061229f565b602060405180830381865afa158015610f3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5e91906122cf565b9750505050505050915091565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148061101857507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610fff6113f0565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561104f576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b611059611292565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156110c457506040513d601f19601f820116820180604052508101906110c1919061235c565b60015b61110557816040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016110fc9190611b62565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b811461116c57806040517faa1d49a40000000000000000000000000000000000000000000000000000000081526004016111639190611a5a565b60405180910390fd5b6111768383611447565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614611200576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b60006112346113c8565b90508060000160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055611266826114ba565b5050565b60007fe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00905090565b61129a611398565b73ffffffffffffffffffffffffffffffffffffffff166112b8610a8f565b73ffffffffffffffffffffffffffffffffffffffff1614611317576112db611398565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161130e9190611b62565b60405180910390fd5b565b60606397a657c960e01b8260405160240161133491906123a5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b600033905090565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b60007f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00905090565b600061141e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114508261159b565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a26000815111156114ad576114a78282611668565b506114b6565b6114b56116ec565b5b5050565b60006114c46113a0565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036115f757806040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016115ee9190611b62565b60405180910390fd5b806116247f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff168460405161169291906123fc565b600060405180830381855af49150503d80600081146116cd576040519150601f19603f3d011682016040523d82523d6000602084013e6116d2565b606091505b50915091506116e2858383611729565b9250505092915050565b6000341115611727576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608261173e57611739826117b8565b6117b0565b60008251148015611766575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156117a857836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161179f9190611b62565b60405180910390fd5b8190506117b1565b5b9392505050565b6000815111156117cb5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061186c82611841565b9050919050565b61187c81611861565b811461188757600080fd5b50565b60008135905061189981611873565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6118f2826118a9565b810181811067ffffffffffffffff82111715611911576119106118ba565b5b80604052505050565b600061192461182d565b905061193082826118e9565b919050565b600067ffffffffffffffff8211156119505761194f6118ba565b5b611959826118a9565b9050602081019050919050565b82818337600083830152505050565b600061198861198384611935565b61191a565b9050828152602081018484840111156119a4576119a36118a4565b5b6119af848285611966565b509392505050565b600082601f8301126119cc576119cb61189f565b5b81356119dc848260208601611975565b91505092915050565b600080604083850312156119fc576119fb611837565b5b6000611a0a8582860161188a565b925050602083013567ffffffffffffffff811115611a2b57611a2a61183c565b5b611a37858286016119b7565b9150509250929050565b6000819050919050565b611a5481611a41565b82525050565b6000602082019050611a6f6000830184611a4b565b92915050565b6000819050919050565b611a8881611a75565b8114611a9357600080fd5b50565b600081359050611aa581611a7f565b92915050565b600080600080600060a08688031215611ac757611ac6611837565b5b6000611ad58882890161188a565b9550506020611ae68882890161188a565b9450506040611af78882890161188a565b9350506060611b0888828901611a96565b9250506080611b198882890161188a565b9150509295509295909350565b600060208284031215611b3c57611b3b611837565b5b6000611b4a84828501611a96565b91505092915050565b611b5c81611861565b82525050565b6000602082019050611b776000830184611b53565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611bb7578082015181840152602081019050611b9c565b60008484015250505050565b6000611bce82611b7d565b611bd88185611b88565b9350611be8818560208601611b99565b611bf1816118a9565b840191505092915050565b60006020820190508181036000830152611c168184611bc3565b905092915050565b600060208284031215611c3457611c33611837565b5b6000611c428482850161188a565b91505092915050565b611c5481611a75565b82525050565b6000604082019050611c6f6000830185611c4b565b611c7c6020830184611c4b565b9392505050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b6000611cc6611cc1611cbc84611c83565b611ca1565b611c8d565b9050919050565b611cd681611cab565b82525050565b6000602082019050611cf16000830184611ccd565b92915050565b600069ffffffffffffffffffff82169050919050565b611d1681611cf7565b8114611d2157600080fd5b50565b600081519050611d3381611d0d565b92915050565b6000819050919050565b611d4c81611d39565b8114611d5757600080fd5b50565b600081519050611d6981611d43565b92915050565b600081519050611d7e81611a7f565b92915050565b600080600080600060a08688031215611da057611d9f611837565b5b6000611dae88828901611d24565b9550506020611dbf88828901611d5a565b9450506040611dd088828901611d6f565b9350506060611de188828901611d6f565b9250506080611df288828901611d24565b9150509295509295909350565b600060ff82169050919050565b611e1581611dff565b8114611e2057600080fd5b50565b600081519050611e3281611e0c565b92915050565b600060208284031215611e4e57611e4d611837565b5b6000611e5c84828501611e23565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611eeb57808604811115611ec757611ec6611e65565b5b6001851615611ed65780820291505b8081029050611ee485611e94565b9450611eab565b94509492505050565b600082611f045760019050611fc0565b81611f125760009050611fc0565b8160018114611f285760028114611f3257611f61565b6001915050611fc0565b60ff841115611f4457611f43611e65565b5b8360020a915084821115611f5b57611f5a611e65565b5b50611fc0565b5060208310610133831016604e8410600b8410161715611f965782820a905083811115611f9157611f90611e65565b5b611fc0565b611fa38484846001611ea1565b92509050818404811115611fba57611fb9611e65565b5b81810290505b9392505050565b6000611fd282611a75565b9150611fdd83611dff565b925061200a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611ef4565b905092915050565b600061201d82611a75565b915061202883611a75565b925082820261203681611a75565b9150828204841483151761204d5761204c611e65565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061208e82611a75565b915061209983611a75565b9250826120a9576120a8612054565b5b828204905092915050565b6120bd81611c8d565b82525050565b600081519050919050565b600082825260208201905092915050565b60006120ea826120c3565b6120f481856120ce565b9350612104818560208601611b99565b61210d816118a9565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61214d81611861565b82525050565b61215c81611a75565b82525050565b6040820160008201516121786000850182612144565b50602082015161218b6020850182612153565b50505050565b600061219d8383612162565b60408301905092915050565b6000602082019050919050565b60006121c182612118565b6121cb8185612123565b93506121d683612134565b8060005b838110156122075781516121ee8882612191565b97506121f9836121a9565b9250506001810190506121da565b5085935050505092915050565b600060a083016000830151848203600086015261223182826120df565b9150506020830151848203602086015261224b82826120df565b9150506040830151848203604086015261226582826121b6565b915050606083015161227a6060860182612144565b506080830151848203608086015261229282826120df565b9150508091505092915050565b60006040820190506122b460008301856120b4565b81810360208301526122c68184612214565b90509392505050565b6000602082840312156122e5576122e4611837565b5b60006122f384828501611d6f565b91505092915050565b600061230782611a75565b915061231283611a75565b925082820390508181111561232a57612329611e65565b5b92915050565b61233981611a41565b811461234457600080fd5b50565b60008151905061235681612330565b92915050565b60006020828403121561237257612371611837565b5b600061238084828501612347565b91505092915050565b60208201600082015161239f6000850182612153565b50505050565b60006020820190506123ba6000830184612389565b92915050565b600081905092915050565b60006123d6826120c3565b6123e081856123c0565b93506123f0818560208601611b99565b80840191505092915050565b600061240882846123cb565b91508190509291505056fea264697066735822122062284939d8f0beb87eac9511f3cc420ed85a24701ee09e6f5cf06bc1c840945964736f6c63430008190033",
+ "deployedBytecode": "0x60806040526004361061009c5760003560e01c806379ba50971161006457806379ba5097146101585780638da5cb5b1461016f578063ad3cb1cc1461019a578063e30c3978146101c5578063f2fde38b146101f0578063fcee45f4146102195761009c565b80634f1ef286146100a157806352d1902d146100bd578063530b97a4146100e8578063715018a61461011157806374af8ff514610128575b600080fd5b6100bb60048036038101906100b691906119e5565b610257565b005b3480156100c957600080fd5b506100d2610276565b6040516100df9190611a5a565b60405180910390f35b3480156100f457600080fd5b5061010f600480360381019061010a9190611aab565b6102a9565b005b34801561011d57600080fd5b5061012661053d565b005b610142600480360381019061013d9190611b26565b610551565b60405161014f9190611a5a565b60405180910390f35b34801561016457600080fd5b5061016d610a00565b005b34801561017b57600080fd5b50610184610a8f565b6040516101919190611b62565b60405180910390f35b3480156101a657600080fd5b506101af610ac7565b6040516101bc9190611bfc565b60405180910390f35b3480156101d157600080fd5b506101da610b00565b6040516101e79190611b62565b60405180910390f35b3480156101fc57600080fd5b5061021760048036038101906102129190611c1e565b610b38565b005b34801561022557600080fd5b50610240600480360381019061023b9190611b26565b610bf4565b60405161024e929190611c5a565b60405180910390f35b61025f610f6b565b61026882611051565b610272828261105c565b5050565b600061028061117b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b60006102b3611202565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156103015750825b9050600060018367ffffffffffffffff16148015610336575060003073ffffffffffffffffffffffffffffffffffffffff163b145b905081158015610344575080155b1561037b576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156103cb5760018560000160086101000a81548160ff0219169083151502179055505b6103d48a61122a565b60006103de61126a565b9050898160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550888160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550878160010160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550868160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505083156105315760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516105289190611cdc565b60405180910390a15b50505050505050505050565b610545611292565b61054f600061122a565b565b600061055b611292565b600061056561126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156105d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f79190611d84565b505050915050600061060761126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610675573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106999190611e38565b90506000670de0b6b3a764000082600a6106b39190611fc7565b6106bd9190612012565b83866106c99190612012565b6106d39190612083565b905060006106df61126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600061070f61126a565b60010160149054906101000a900467ffffffffffffffff1690506000468460405160200161073e929190611c5a565b604051602081830303815290604052905060006040518060a001604052808560405160200161076d9190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff8111156107a2576107a16118ba565b5b6040519080825280602002602001820160405280156107db57816020015b6107c86117fd565b8152602001906001900390816107c05790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610818604051806020016040528062030d40815250611319565b8152509050600061082761126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded85846040518363ffffffff1660e01b815260040161088592919061229f565b602060405180830381865afa1580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c691906122cf565b9050808a346108d591906122fc565b101561090d576040517fad3a8b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61091561126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166396f4e9f98286856040518463ffffffff1660e01b815260040161097492919061229f565b60206040518083038185885af1158015610992573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906109b7919061235c565b9850887faf4d8a84b234410af70315b833c476a761b33559f391cf26d8f3bf7baa5f12ee87836040516109eb929190611c5a565b60405180910390a25050505050505050919050565b6000610a0a611398565b90508073ffffffffffffffffffffffffffffffffffffffff16610a2b610b00565b73ffffffffffffffffffffffffffffffffffffffff1614610a8357806040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a7a9190611b62565b60405180910390fd5b610a8c8161122a565b50565b600080610a9a6113a0565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b600080610b0b6113c8565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b610b40611292565b6000610b4a6113c8565b9050818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff16610bae610a8f565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b6000806000610c0161126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c939190611d84565b5050509150506000610ca361126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d359190611e38565b9050670de0b6b3a764000081600a610d4d9190611fc7565b610d579190612012565b8286610d639190612012565b610d6d9190612083565b92506000610d7961126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000610da961126a565b60010160149054906101000a900467ffffffffffffffff16905060004686604051602001610dd8929190611c5a565b604051602081830303815290604052905060006040518060a0016040528085604051602001610e079190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff811115610e3c57610e3b6118ba565b5b604051908082528060200260200182016040528015610e7557816020015b610e626117fd565b815260200190600190039081610e5a5790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610eb2604051806020016040528062030d40815250611319565b8152509050610ebf61126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded84836040518363ffffffff1660e01b8152600401610f1d92919061229f565b602060405180830381865afa158015610f3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5e91906122cf565b9750505050505050915091565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148061101857507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610fff6113f0565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561104f576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b611059611292565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156110c457506040513d601f19601f820116820180604052508101906110c1919061235c565b60015b61110557816040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016110fc9190611b62565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b811461116c57806040517faa1d49a40000000000000000000000000000000000000000000000000000000081526004016111639190611a5a565b60405180910390fd5b6111768383611447565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614611200576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b60006112346113c8565b90508060000160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055611266826114ba565b5050565b60007fe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00905090565b61129a611398565b73ffffffffffffffffffffffffffffffffffffffff166112b8610a8f565b73ffffffffffffffffffffffffffffffffffffffff1614611317576112db611398565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161130e9190611b62565b60405180910390fd5b565b60606397a657c960e01b8260405160240161133491906123a5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b600033905090565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b60007f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00905090565b600061141e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114508261159b565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a26000815111156114ad576114a78282611668565b506114b6565b6114b56116ec565b5b5050565b60006114c46113a0565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036115f757806040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016115ee9190611b62565b60405180910390fd5b806116247f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff168460405161169291906123fc565b600060405180830381855af49150503d80600081146116cd576040519150601f19603f3d011682016040523d82523d6000602084013e6116d2565b606091505b50915091506116e2858383611729565b9250505092915050565b6000341115611727576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608261173e57611739826117b8565b6117b0565b60008251148015611766575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156117a857836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161179f9190611b62565b60405180910390fd5b8190506117b1565b5b9392505050565b6000815111156117cb5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061186c82611841565b9050919050565b61187c81611861565b811461188757600080fd5b50565b60008135905061189981611873565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6118f2826118a9565b810181811067ffffffffffffffff82111715611911576119106118ba565b5b80604052505050565b600061192461182d565b905061193082826118e9565b919050565b600067ffffffffffffffff8211156119505761194f6118ba565b5b611959826118a9565b9050602081019050919050565b82818337600083830152505050565b600061198861198384611935565b61191a565b9050828152602081018484840111156119a4576119a36118a4565b5b6119af848285611966565b509392505050565b600082601f8301126119cc576119cb61189f565b5b81356119dc848260208601611975565b91505092915050565b600080604083850312156119fc576119fb611837565b5b6000611a0a8582860161188a565b925050602083013567ffffffffffffffff811115611a2b57611a2a61183c565b5b611a37858286016119b7565b9150509250929050565b6000819050919050565b611a5481611a41565b82525050565b6000602082019050611a6f6000830184611a4b565b92915050565b6000819050919050565b611a8881611a75565b8114611a9357600080fd5b50565b600081359050611aa581611a7f565b92915050565b600080600080600060a08688031215611ac757611ac6611837565b5b6000611ad58882890161188a565b9550506020611ae68882890161188a565b9450506040611af78882890161188a565b9350506060611b0888828901611a96565b9250506080611b198882890161188a565b9150509295509295909350565b600060208284031215611b3c57611b3b611837565b5b6000611b4a84828501611a96565b91505092915050565b611b5c81611861565b82525050565b6000602082019050611b776000830184611b53565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611bb7578082015181840152602081019050611b9c565b60008484015250505050565b6000611bce82611b7d565b611bd88185611b88565b9350611be8818560208601611b99565b611bf1816118a9565b840191505092915050565b60006020820190508181036000830152611c168184611bc3565b905092915050565b600060208284031215611c3457611c33611837565b5b6000611c428482850161188a565b91505092915050565b611c5481611a75565b82525050565b6000604082019050611c6f6000830185611c4b565b611c7c6020830184611c4b565b9392505050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b6000611cc6611cc1611cbc84611c83565b611ca1565b611c8d565b9050919050565b611cd681611cab565b82525050565b6000602082019050611cf16000830184611ccd565b92915050565b600069ffffffffffffffffffff82169050919050565b611d1681611cf7565b8114611d2157600080fd5b50565b600081519050611d3381611d0d565b92915050565b6000819050919050565b611d4c81611d39565b8114611d5757600080fd5b50565b600081519050611d6981611d43565b92915050565b600081519050611d7e81611a7f565b92915050565b600080600080600060a08688031215611da057611d9f611837565b5b6000611dae88828901611d24565b9550506020611dbf88828901611d5a565b9450506040611dd088828901611d6f565b9350506060611de188828901611d6f565b9250506080611df288828901611d24565b9150509295509295909350565b600060ff82169050919050565b611e1581611dff565b8114611e2057600080fd5b50565b600081519050611e3281611e0c565b92915050565b600060208284031215611e4e57611e4d611837565b5b6000611e5c84828501611e23565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611eeb57808604811115611ec757611ec6611e65565b5b6001851615611ed65780820291505b8081029050611ee485611e94565b9450611eab565b94509492505050565b600082611f045760019050611fc0565b81611f125760009050611fc0565b8160018114611f285760028114611f3257611f61565b6001915050611fc0565b60ff841115611f4457611f43611e65565b5b8360020a915084821115611f5b57611f5a611e65565b5b50611fc0565b5060208310610133831016604e8410600b8410161715611f965782820a905083811115611f9157611f90611e65565b5b611fc0565b611fa38484846001611ea1565b92509050818404811115611fba57611fb9611e65565b5b81810290505b9392505050565b6000611fd282611a75565b9150611fdd83611dff565b925061200a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611ef4565b905092915050565b600061201d82611a75565b915061202883611a75565b925082820261203681611a75565b9150828204841483151761204d5761204c611e65565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061208e82611a75565b915061209983611a75565b9250826120a9576120a8612054565b5b828204905092915050565b6120bd81611c8d565b82525050565b600081519050919050565b600082825260208201905092915050565b60006120ea826120c3565b6120f481856120ce565b9350612104818560208601611b99565b61210d816118a9565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61214d81611861565b82525050565b61215c81611a75565b82525050565b6040820160008201516121786000850182612144565b50602082015161218b6020850182612153565b50505050565b600061219d8383612162565b60408301905092915050565b6000602082019050919050565b60006121c182612118565b6121cb8185612123565b93506121d683612134565b8060005b838110156122075781516121ee8882612191565b97506121f9836121a9565b9250506001810190506121da565b5085935050505092915050565b600060a083016000830151848203600086015261223182826120df565b9150506020830151848203602086015261224b82826120df565b9150506040830151848203604086015261226582826121b6565b915050606083015161227a6060860182612144565b506080830151848203608086015261229282826120df565b9150508091505092915050565b60006040820190506122b460008301856120b4565b81810360208301526122c68184612214565b90509392505050565b6000602082840312156122e5576122e4611837565b5b60006122f384828501611d6f565b91505092915050565b600061230782611a75565b915061231283611a75565b925082820390508181111561232a57612329611e65565b5b92915050565b61233981611a41565b811461234457600080fd5b50565b60008151905061235681612330565b92915050565b60006020828403121561237257612371611837565b5b600061238084828501612347565b91505092915050565b60208201600082015161239f6000850182612153565b50505050565b60006020820190506123ba6000830184612389565b92915050565b600081905092915050565b60006123d6826120c3565b6123e081856123c0565b93506123f0818560208601611b99565b80840191505092915050565b600061240882846123cb565b91508190509291505056fea264697066735822122062284939d8f0beb87eac9511f3cc420ed85a24701ee09e6f5cf06bc1c840945964736f6c63430008190033",
+ "devdoc": {
+ "errors": {
+ "AddressEmptyCode(address)": [
+ {
+ "details": "There's no code at `target` (it is not a contract)."
+ }
+ ],
+ "ERC1967InvalidImplementation(address)": [
+ {
+ "details": "The `implementation` of the proxy is invalid."
+ }
+ ],
+ "ERC1967NonPayable()": [
+ {
+ "details": "An upgrade function sees `msg.value > 0` that may be lost."
+ }
+ ],
+ "FailedInnerCall()": [
+ {
+ "details": "A call to an address target failed. The target may have reverted."
+ }
+ ],
+ "InvalidInitialization()": [
+ {
+ "details": "The contract is already initialized."
+ }
+ ],
+ "NotInitializing()": [
+ {
+ "details": "The contract is not initializing."
+ }
+ ],
+ "OwnableInvalidOwner(address)": [
+ {
+ "details": "The owner is not a valid owner account. (eg. `address(0)`)"
+ }
+ ],
+ "OwnableUnauthorizedAccount(address)": [
+ {
+ "details": "The caller account is not authorized to perform an operation."
+ }
+ ],
+ "UUPSUnauthorizedCallContext()": [
+ {
+ "details": "The call is from an unauthorized context."
+ }
+ ],
+ "UUPSUnsupportedProxiableUUID(bytes32)": [
+ {
+ "details": "The storage `slot` is unsupported as a UUID."
+ }
+ ]
+ },
+ "events": {
+ "Initialized(uint64)": {
+ "details": "Triggered when the contract has been initialized or reinitialized."
+ },
+ "Upgraded(address)": {
+ "details": "Emitted when the implementation is upgraded."
+ }
+ },
+ "kind": "dev",
+ "methods": {
+ "acceptOwnership()": {
+ "details": "The new owner accepts the ownership transfer."
+ },
+ "owner()": {
+ "details": "Returns the address of the current owner."
+ },
+ "pendingOwner()": {
+ "details": "Returns the address of the pending owner."
+ },
+ "proxiableUUID()": {
+ "details": "Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier."
+ },
+ "renounceOwnership()": {
+ "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."
+ },
+ "sendHorse(uint256)": {
+ "returns": {
+ "messageId": "The ID of the message that was sent."
+ }
+ },
+ "transferOwnership(address)": {
+ "details": "Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner."
+ },
+ "upgradeToAndCall(address,bytes)": {
+ "custom:oz-upgrades-unsafe-allow-reachable": "delegatecall",
+ "details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."
+ }
+ },
+ "version": 1
+ },
+ "userdoc": {
+ "kind": "user",
+ "methods": {
+ "sendHorse(uint256)": {
+ "notice": "Sends data to receiver on the destination chain."
+ }
+ },
+ "version": 1
+ },
+ "storageLayout": {
+ "storage": [],
+ "types": null
+ }
+}
\ No newline at end of file
diff --git a/packages/contracts/deployments/arb_sepolia/TrojanHorse_Proxy.json b/packages/contracts/deployments/arb_sepolia/TrojanHorse_Proxy.json
new file mode 100644
index 0000000..94800c3
--- /dev/null
+++ b/packages/contracts/deployments/arb_sepolia/TrojanHorse_Proxy.json
@@ -0,0 +1,137 @@
+{
+ "address": "0x9de2aF3C2c3B111b0BFa1e2a2068BeB74a1B9347",
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "_logic",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "_data",
+ "type": "bytes"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "previousAdmin",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "newAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "AdminChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "beacon",
+ "type": "address"
+ }
+ ],
+ "name": "BeaconUpgraded",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "Upgraded",
+ "type": "event"
+ },
+ {
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "stateMutability": "payable",
+ "type": "receive"
+ }
+ ],
+ "transactionHash": "0xef2fd7e5a66ef150727f3c571110beabf9474b62429ca69d8eb94406e7fecc6c",
+ "receipt": {
+ "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
+ "from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "contractAddress": null,
+ "transactionIndex": 3,
+ "gasUsed": "375147",
+ "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000002000101000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000800000004000000000000000080000000000000000000000000000000000100000000000000000000000000000000000000000004000000000020000000000000000000000000000000000004000400020000000120000000000000000000000000000000000000000000008000000000000000000000",
+ "blockHash": "0x904029e896fe9b9b3732e748041ae2751b4567c30ca78c33544e710e0746341f",
+ "transactionHash": "0xef2fd7e5a66ef150727f3c571110beabf9474b62429ca69d8eb94406e7fecc6c",
+ "logs": [
+ {
+ "transactionIndex": 3,
+ "blockNumber": 33378896,
+ "transactionHash": "0xef2fd7e5a66ef150727f3c571110beabf9474b62429ca69d8eb94406e7fecc6c",
+ "address": "0x9de2aF3C2c3B111b0BFa1e2a2068BeB74a1B9347",
+ "topics": [
+ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
+ "0x000000000000000000000000f92382e7b0fd233364e1042fdc1a948178b26d17"
+ ],
+ "data": "0x",
+ "logIndex": 2,
+ "blockHash": "0x904029e896fe9b9b3732e748041ae2751b4567c30ca78c33544e710e0746341f"
+ },
+ {
+ "transactionIndex": 3,
+ "blockNumber": 33378896,
+ "transactionHash": "0xef2fd7e5a66ef150727f3c571110beabf9474b62429ca69d8eb94406e7fecc6c",
+ "address": "0x9de2aF3C2c3B111b0BFa1e2a2068BeB74a1B9347",
+ "topics": [
+ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "0x000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560"
+ ],
+ "data": "0x",
+ "logIndex": 3,
+ "blockHash": "0x904029e896fe9b9b3732e748041ae2751b4567c30ca78c33544e710e0746341f"
+ },
+ {
+ "transactionIndex": 3,
+ "blockNumber": 33378896,
+ "transactionHash": "0xef2fd7e5a66ef150727f3c571110beabf9474b62429ca69d8eb94406e7fecc6c",
+ "address": "0x9de2aF3C2c3B111b0BFa1e2a2068BeB74a1B9347",
+ "topics": [
+ "0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"
+ ],
+ "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
+ "logIndex": 4,
+ "blockHash": "0x904029e896fe9b9b3732e748041ae2751b4567c30ca78c33544e710e0746341f"
+ }
+ ],
+ "blockNumber": 33378896,
+ "cumulativeGasUsed": "517970",
+ "status": 1,
+ "byzantium": true
+ },
+ "args": [
+ "0xF92382E7b0FD233364e1042fDc1a948178b26D17",
+ "0x530b97a4000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb05600000000000000000000000002a9c5afb0d0e4bab2bcdae109ec4b0c4be15a165000000000000000000000000d30e2101a97dcbaebcbc04f14c3f624e67a35165000000000000000000000000000000000000000000000000de41ba4fc9d91ad900000000000000000000000010d5617ef73e62545f45017a0f85847c081b9fce"
+ ],
+ "numDeployments": 1,
+ "bytecode": "0x60806040526040516107353803806107358339810160408190526100229161031e565b61002e82826000610035565b505061043b565b61003e8361006b565b60008251118061004b5750805b156100665761006483836100ab60201b6100291760201c565b505b505050565b610074816100d7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100d0838360405180606001604052806027815260200161070e602791396101a9565b9392505050565b6100ea8161022260201b6100551760201c565b6101515760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61023160201b6100641760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060600080856001600160a01b0316856040516101c691906103ec565b600060405180830381855af49150503d8060008114610201576040519150601f19603f3d011682016040523d82523d6000602084013e610206565b606091505b50909250905061021886838387610234565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102a0578251610299576001600160a01b0385163b6102995760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610148565b50816102aa565b6102aa83836102b2565b949350505050565b8151156102c25781518083602001fd5b8060405162461bcd60e51b81526004016101489190610408565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561030d5781810151838201526020016102f5565b838111156100645750506000910152565b6000806040838503121561033157600080fd5b82516001600160a01b038116811461034857600080fd5b60208401519092506001600160401b038082111561036557600080fd5b818501915085601f83011261037957600080fd5b81518181111561038b5761038b6102dc565b604051601f8201601f19908116603f011681019083821181831017156103b3576103b36102dc565b816040528281528860208487010111156103cc57600080fd5b6103dd8360208301602088016102f2565b80955050505050509250929050565b600082516103fe8184602087016102f2565b9190910192915050565b60208152600082518060208401526104278160408501602087016102f2565b601f01601f19169190910160400192915050565b6102c48061044a6000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",
+ "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033"
+}
\ No newline at end of file
diff --git a/packages/contracts/deployments/base_sepolia/.chainId b/packages/contracts/deployments/base_sepolia/.chainId
new file mode 100644
index 0000000..667f99d
--- /dev/null
+++ b/packages/contracts/deployments/base_sepolia/.chainId
@@ -0,0 +1 @@
+84532
\ No newline at end of file
diff --git a/packages/contracts/deployments/base_sepolia/TrojanHorse.json b/packages/contracts/deployments/base_sepolia/TrojanHorse.json
new file mode 100644
index 0000000..3481b19
--- /dev/null
+++ b/packages/contracts/deployments/base_sepolia/TrojanHorse.json
@@ -0,0 +1,482 @@
+{
+ "address": "0xFE823dddB1e0f5162a1A500672FB06f11142fF14",
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "previousAdmin",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "newAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "AdminChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "beacon",
+ "type": "address"
+ }
+ ],
+ "name": "BeaconUpgraded",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "Upgraded",
+ "type": "event"
+ },
+ {
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "stateMutability": "payable",
+ "type": "receive"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "target",
+ "type": "address"
+ }
+ ],
+ "name": "AddressEmptyCode",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "ERC1967InvalidImplementation",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "ERC1967NonPayable",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "FailedInnerCall",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidInitialization",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotEnoughBalance",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotInitializing",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableInvalidOwner",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableUnauthorizedAccount",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "UUPSUnauthorizedCallContext",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "slot",
+ "type": "bytes32"
+ }
+ ],
+ "name": "UUPSUnsupportedProxiableUUID",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ }
+ ],
+ "name": "HorseSent",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint64",
+ "name": "version",
+ "type": "uint64"
+ }
+ ],
+ "name": "Initialized",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferStarted",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferred",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "UPGRADE_INTERFACE_VERSION",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "acceptOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "getFee",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "router_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "aggregator_",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "chainSelector_",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "receiver_",
+ "type": "address"
+ }
+ ],
+ "name": "initialize",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "owner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "pendingOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "proxiableUUID",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "renounceOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "sendHorse",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "transferOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newImplementation",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "upgradeToAndCall",
+ "outputs": [],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "_logic",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "_data",
+ "type": "bytes"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "constructor"
+ }
+ ],
+ "transactionHash": "0x9a9c9a1dea4565734c7b96d2f4b4e4927d18e45e76fbfa1b048cf628f341e7e0",
+ "receipt": {
+ "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
+ "from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "contractAddress": null,
+ "transactionIndex": 2,
+ "gasUsed": "375147",
+ "logsBloom": "0x00000000000000000000000000002000400000000000000008800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000000010000000000000000000400000000000000000000800000000000000000000000080000000000000000000000000000000000100000000000001000000000000000000000000800000000000000020000000000000000000000000000000000004000400020000000020000000000000000000000000000000800000000000000000000000000000000000",
+ "blockHash": "0x75f325eee880a98e2331f6f2d51edb5517ef405eb86839b46585844d5b35b3a8",
+ "transactionHash": "0x9a9c9a1dea4565734c7b96d2f4b4e4927d18e45e76fbfa1b048cf628f341e7e0",
+ "logs": [
+ {
+ "transactionIndex": 2,
+ "blockNumber": 8638775,
+ "transactionHash": "0x9a9c9a1dea4565734c7b96d2f4b4e4927d18e45e76fbfa1b048cf628f341e7e0",
+ "address": "0xFE823dddB1e0f5162a1A500672FB06f11142fF14",
+ "topics": [
+ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
+ "0x000000000000000000000000b0d02c3025068d889e3a6d77ed48a9f7062be153"
+ ],
+ "data": "0x",
+ "logIndex": 0,
+ "blockHash": "0x75f325eee880a98e2331f6f2d51edb5517ef405eb86839b46585844d5b35b3a8"
+ },
+ {
+ "transactionIndex": 2,
+ "blockNumber": 8638775,
+ "transactionHash": "0x9a9c9a1dea4565734c7b96d2f4b4e4927d18e45e76fbfa1b048cf628f341e7e0",
+ "address": "0xFE823dddB1e0f5162a1A500672FB06f11142fF14",
+ "topics": [
+ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "0x000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560"
+ ],
+ "data": "0x",
+ "logIndex": 1,
+ "blockHash": "0x75f325eee880a98e2331f6f2d51edb5517ef405eb86839b46585844d5b35b3a8"
+ },
+ {
+ "transactionIndex": 2,
+ "blockNumber": 8638775,
+ "transactionHash": "0x9a9c9a1dea4565734c7b96d2f4b4e4927d18e45e76fbfa1b048cf628f341e7e0",
+ "address": "0xFE823dddB1e0f5162a1A500672FB06f11142fF14",
+ "topics": [
+ "0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"
+ ],
+ "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
+ "logIndex": 2,
+ "blockHash": "0x75f325eee880a98e2331f6f2d51edb5517ef405eb86839b46585844d5b35b3a8"
+ }
+ ],
+ "blockNumber": 8638775,
+ "cumulativeGasUsed": "441382",
+ "status": 1,
+ "byzantium": true
+ },
+ "args": [
+ "0xB0D02c3025068D889E3a6d77ed48a9F7062bE153",
+ "0x530b97a4000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560000000000000000000000000d3b06cebf099ce7da4accf578aaebfdbd6e88a930000000000000000000000004adc67696ba383f43dd60a9e78f2c97fbbfc7cb1000000000000000000000000000000000000000000000000de41ba4fc9d91ad900000000000000000000000010d5617ef73e62545f45017a0f85847c081b9fce"
+ ],
+ "numDeployments": 1,
+ "bytecode": "0x60806040526040516107353803806107358339810160408190526100229161031e565b61002e82826000610035565b505061043b565b61003e8361006b565b60008251118061004b5750805b156100665761006483836100ab60201b6100291760201c565b505b505050565b610074816100d7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100d0838360405180606001604052806027815260200161070e602791396101a9565b9392505050565b6100ea8161022260201b6100551760201c565b6101515760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61023160201b6100641760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060600080856001600160a01b0316856040516101c691906103ec565b600060405180830381855af49150503d8060008114610201576040519150601f19603f3d011682016040523d82523d6000602084013e610206565b606091505b50909250905061021886838387610234565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102a0578251610299576001600160a01b0385163b6102995760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610148565b50816102aa565b6102aa83836102b2565b949350505050565b8151156102c25781518083602001fd5b8060405162461bcd60e51b81526004016101489190610408565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561030d5781810151838201526020016102f5565b838111156100645750506000910152565b6000806040838503121561033157600080fd5b82516001600160a01b038116811461034857600080fd5b60208401519092506001600160401b038082111561036557600080fd5b818501915085601f83011261037957600080fd5b81518181111561038b5761038b6102dc565b604051601f8201601f19908116603f011681019083821181831017156103b3576103b36102dc565b816040528281528860208487010111156103cc57600080fd5b6103dd8360208301602088016102f2565b80955050505050509250929050565b600082516103fe8184602087016102f2565b9190910192915050565b60208152600082518060208401526104278160408501602087016102f2565b601f01601f19169190910160400192915050565b6102c48061044a6000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",
+ "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033",
+ "execute": {
+ "methodName": "initialize",
+ "args": [
+ "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "0xD3b06cEbF099CE7DA4AcCf578aaebFDBd6e88a93",
+ "0x4aDC67696bA383F43DD60A9e78F2C97Fbbfc7cb1",
+ "16015286601757825753",
+ "0x10d5617ef73E62545F45017A0F85847c081b9fcE"
+ ]
+ },
+ "implementation": "0xB0D02c3025068D889E3a6d77ed48a9F7062bE153"
+}
\ No newline at end of file
diff --git a/packages/contracts/deployments/base_sepolia/TrojanHorse_Implementation.json b/packages/contracts/deployments/base_sepolia/TrojanHorse_Implementation.json
new file mode 100644
index 0000000..65ebfb3
--- /dev/null
+++ b/packages/contracts/deployments/base_sepolia/TrojanHorse_Implementation.json
@@ -0,0 +1,480 @@
+{
+ "address": "0xB0D02c3025068D889E3a6d77ed48a9F7062bE153",
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "target",
+ "type": "address"
+ }
+ ],
+ "name": "AddressEmptyCode",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "ERC1967InvalidImplementation",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "ERC1967NonPayable",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "FailedInnerCall",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidInitialization",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotEnoughBalance",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotInitializing",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableInvalidOwner",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableUnauthorizedAccount",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "UUPSUnauthorizedCallContext",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "slot",
+ "type": "bytes32"
+ }
+ ],
+ "name": "UUPSUnsupportedProxiableUUID",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ }
+ ],
+ "name": "HorseSent",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint64",
+ "name": "version",
+ "type": "uint64"
+ }
+ ],
+ "name": "Initialized",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferStarted",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferred",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "Upgraded",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "UPGRADE_INTERFACE_VERSION",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "acceptOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "getFee",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "router_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "aggregator_",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "chainSelector_",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "receiver_",
+ "type": "address"
+ }
+ ],
+ "name": "initialize",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "owner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "pendingOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "proxiableUUID",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "renounceOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "sendHorse",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "transferOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newImplementation",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "upgradeToAndCall",
+ "outputs": [],
+ "stateMutability": "payable",
+ "type": "function"
+ }
+ ],
+ "transactionHash": "0x19fb589bfba240b612352b180d563ce39b8a4ab0f8fd89db33762dcae8686362",
+ "receipt": {
+ "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
+ "from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "contractAddress": null,
+ "transactionIndex": 2,
+ "gasUsed": "2057987",
+ "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "blockHash": "0x4306c6de80ff4d6056d05b2d4dddd2685a7e76a94436fcf649423d4d34a0b178",
+ "transactionHash": "0x19fb589bfba240b612352b180d563ce39b8a4ab0f8fd89db33762dcae8686362",
+ "logs": [],
+ "blockNumber": 8638769,
+ "cumulativeGasUsed": "2157961",
+ "status": 1,
+ "byzantium": true
+ },
+ "args": [],
+ "numDeployments": 1,
+ "solcInputHash": "072036421b95051681b93d5e2153ae28",
+ "metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ERC1967InvalidImplementation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC1967NonPayable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedInnerCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotEnoughBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UUPSUnauthorizedCallContext\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"slot\",\"type\":\"bytes32\"}],\"name\":\"UUPSUnsupportedProxiableUUID\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"soldierAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"}],\"name\":\"HorseSent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"UPGRADE_INTERFACE_VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fundForSoldiers\",\"type\":\"uint256\"}],\"name\":\"getFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"soldierAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"router_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"aggregator_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainSelector_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fundForSoldiers\",\"type\":\"uint256\"}],\"name\":\"sendHorse\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"AddressEmptyCode(address)\":[{\"details\":\"There's no code at `target` (it is not a contract).\"}],\"ERC1967InvalidImplementation(address)\":[{\"details\":\"The `implementation` of the proxy is invalid.\"}],\"ERC1967NonPayable()\":[{\"details\":\"An upgrade function sees `msg.value > 0` that may be lost.\"}],\"FailedInnerCall()\":[{\"details\":\"A call to an address target failed. The target may have reverted.\"}],\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"UUPSUnauthorizedCallContext()\":[{\"details\":\"The call is from an unauthorized context.\"}],\"UUPSUnsupportedProxiableUUID(bytes32)\":[{\"details\":\"The storage `slot` is unsupported as a UUID.\"}]},\"events\":{\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"acceptOwnership()\":{\"details\":\"The new owner accepts the ownership transfer.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pendingOwner()\":{\"details\":\"Returns the address of the pending owner.\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"sendHorse(uint256)\":{\"returns\":{\"messageId\":\"The ID of the message that was sent.\"}},\"transferOwnership(address)\":{\"details\":\"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"sendHorse(uint256)\":{\"notice\":\"Sends data to receiver on the destination chain.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/TrojanHorse.sol\":\"TrojanHorse\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {Client} from \\\"../libraries/Client.sol\\\";\\n\\ninterface IRouterClient {\\n error UnsupportedDestinationChain(uint64 destChainSelector);\\n error InsufficientFeeTokenAmount();\\n error InvalidMsgValue();\\n\\n /// @notice Checks if the given chain ID is supported for sending/receiving.\\n /// @param chainSelector The chain to check.\\n /// @return supported is true if it is supported, false if not.\\n function isChainSupported(uint64 chainSelector) external view returns (bool supported);\\n\\n /// @notice Gets a list of all supported tokens which can be sent or received\\n /// to/from a given chain id.\\n /// @param chainSelector The chainSelector.\\n /// @return tokens The addresses of all tokens that are supported.\\n function getSupportedTokens(uint64 chainSelector) external view returns (address[] memory tokens);\\n\\n /// @param destinationChainSelector The destination chainSelector\\n /// @param message The cross-chain CCIP message including data and/or tokens\\n /// @return fee returns execution fee for the message\\n /// delivery to destination chain, denominated in the feeToken specified in the message.\\n /// @dev Reverts with appropriate reason upon invalid message.\\n function getFee(\\n uint64 destinationChainSelector,\\n Client.EVM2AnyMessage memory message\\n ) external view returns (uint256 fee);\\n\\n /// @notice Request a message to be sent to the destination chain\\n /// @param destinationChainSelector The destination chain ID\\n /// @param message The cross-chain CCIP message including data and/or tokens\\n /// @return messageId The message ID\\n /// @dev Note if msg.value is larger than the required fee (from getFee) we accept\\n /// the overpayment with no refund.\\n /// @dev Reverts with appropriate reason upon invalid message.\\n function ccipSend(\\n uint64 destinationChainSelector,\\n Client.EVM2AnyMessage calldata message\\n ) external payable returns (bytes32);\\n}\\n\",\"keccak256\":\"0x7f2fdd93e516b7476c6fab099f6806adf5ceaf399b0cc415f6b9ede890f2379b\",\"license\":\"MIT\"},\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// End consumer library.\\nlibrary Client {\\n /// @dev RMN depends on this struct, if changing, please notify the RMN maintainers.\\n struct EVMTokenAmount {\\n address token; // token address on the local chain.\\n uint256 amount; // Amount of tokens.\\n }\\n\\n struct Any2EVMMessage {\\n bytes32 messageId; // MessageId corresponding to ccipSend on source.\\n uint64 sourceChainSelector; // Source chain selector.\\n bytes sender; // abi.decode(sender) if coming from an EVM chain.\\n bytes data; // payload sent in original message.\\n EVMTokenAmount[] destTokenAmounts; // Tokens and their amounts in their destination chain representation.\\n }\\n\\n // If extraArgs is empty bytes, the default is 200k gas limit.\\n struct EVM2AnyMessage {\\n bytes receiver; // abi.encode(receiver address) for dest EVM chains\\n bytes data; // Data payload\\n EVMTokenAmount[] tokenAmounts; // Token transfers\\n address feeToken; // Address of feeToken. address(0) means you will send msg.value.\\n bytes extraArgs; // Populate this with _argsToBytes(EVMExtraArgsV1)\\n }\\n\\n // bytes4(keccak256(\\\"CCIP EVMExtraArgsV1\\\"));\\n bytes4 public constant EVM_EXTRA_ARGS_V1_TAG = 0x97a657c9;\\n struct EVMExtraArgsV1 {\\n uint256 gasLimit;\\n }\\n\\n function _argsToBytes(EVMExtraArgsV1 memory extraArgs) internal pure returns (bytes memory bts) {\\n return abi.encodeWithSelector(EVM_EXTRA_ARGS_V1_TAG, extraArgs);\\n }\\n}\\n\",\"keccak256\":\"0x8af3ac1085c87342373772fb1a0107c7b90258e6bfed318ab2a601a14477e679\",\"license\":\"MIT\"},\"@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0xfe4e8bb4861bb3860ba890ab91a3b818ec66e5a8f544fb608cfcb73f433472cd\",\"license\":\"MIT\"},\"@chainlink/contracts/src/v0.8/shared/interfaces/LinkTokenInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface LinkTokenInterface {\\n function allowance(address owner, address spender) external view returns (uint256 remaining);\\n\\n function approve(address spender, uint256 value) external returns (bool success);\\n\\n function balanceOf(address owner) external view returns (uint256 balance);\\n\\n function decimals() external view returns (uint8 decimalPlaces);\\n\\n function decreaseApproval(address spender, uint256 addedValue) external returns (bool success);\\n\\n function increaseApproval(address spender, uint256 subtractedValue) external;\\n\\n function name() external view returns (string memory tokenName);\\n\\n function symbol() external view returns (string memory tokenSymbol);\\n\\n function totalSupply() external view returns (uint256 totalTokensIssued);\\n\\n function transfer(address to, uint256 value) external returns (bool success);\\n\\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool success);\\n\\n function transferFrom(address from, address to, uint256 value) external returns (bool success);\\n}\\n\",\"keccak256\":\"0xac02fbc0c7d194e525a71f524d1f7c472df73e19c2b527d7b529badaeaf0ec51\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {OwnableUpgradeable} from \\\"./OwnableUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is specified at deployment time in the constructor for `Ownable`. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable2Step\\n struct Ownable2StepStorage {\\n address _pendingOwner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable2Step\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant Ownable2StepStorageLocation = 0x237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00;\\n\\n function _getOwnable2StepStorage() private pure returns (Ownable2StepStorage storage $) {\\n assembly {\\n $.slot := Ownable2StepStorageLocation\\n }\\n }\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n function __Ownable2Step_init() internal onlyInitializing {\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n return $._pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n $._pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n delete $._pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n if (pendingOwner() != sender) {\\n revert OwnableUnauthorizedAccount(sender);\\n }\\n _transferOwnership(sender);\\n }\\n}\\n\",\"keccak256\":\"0xbca4a4f66d98028293dba695851d1b20d3e0ba2fff7453fb241f192fa3fc6b6f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\\\";\\nimport {Initializable} from \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3f13b947637c4969c0644cab4ef399cdc4b67f101463b8775c5a43b118558e53\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set 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(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\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\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"},\"src/TrojanHorse.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\npragma solidity >=0.8.25;\\n\\nimport { UUPSUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport { Ownable2StepUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\nimport { IRouterClient } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol\\\";\\nimport { Client } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\\\";\\nimport { LinkTokenInterface } from \\\"@chainlink/contracts/src/v0.8/shared/interfaces/LinkTokenInterface.sol\\\";\\nimport { AggregatorV3Interface } from \\\"@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\\\";\\n\\ncontract TrojanHorse is UUPSUpgradeable, Ownable2StepUpgradeable {\\n struct TrajonHorseStorage {\\n IRouterClient router;\\n AggregatorV3Interface aggregator;\\n uint64 destinationChainSelector;\\n address receiver;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"battleoflayers.storage.trajonhorse\\\")) - 1)) & ~ bytes32(uint256(0xff))\\n //\\n bytes32 private constant TrajanHorseStorageLocation =\\n 0xe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00;\\n\\n // Event emitted when a message is sent to another chain.\\n event HorseSent( // The unique ID of the CCIP message.\\n bytes32 indexed messageId, uint256 soldierAmount, uint256 fees);\\n\\n error NotEnoughBalance();\\n\\n function _getTrajanHorseStorage() internal pure returns (TrajonHorseStorage storage $) {\\n assembly {\\n $.slot := TrajanHorseStorageLocation\\n }\\n }\\n\\n function initialize(\\n address owner_,\\n address router_,\\n address aggregator_,\\n uint256 chainSelector_,\\n address receiver_\\n )\\n external\\n initializer\\n {\\n _transferOwnership(owner_);\\n\\n TrajonHorseStorage storage $ = _getTrajanHorseStorage();\\n $.router = IRouterClient(router_);\\n $.aggregator = AggregatorV3Interface(aggregator_);\\n $.destinationChainSelector = uint64(chainSelector_);\\n $.receiver = receiver_;\\n }\\n\\n // only owner can upgrade\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner { }\\n\\n // function\\n\\n /// @notice Sends data to receiver on the destination chain.\\n /// @return messageId The ID of the message that was sent.\\n function sendHorse(uint256 fundForSoldiers) external payable onlyOwner returns (bytes32 messageId) {\\n (, int256 answer,,,) = _getTrajanHorseStorage().aggregator.latestRoundData();\\n uint8 decimal = _getTrajanHorseStorage().aggregator.decimals();\\n uint256 soldierAmount = fundForSoldiers * uint256(answer) / (10 ** decimal * 1 ether);\\n\\n address receiver = _getTrajanHorseStorage().receiver;\\n uint64 destinationChainSelector = _getTrajanHorseStorage().destinationChainSelector;\\n\\n // encode data\\n bytes memory data = abi.encode(block.chainid, soldierAmount);\\n\\n // Create an EVM2AnyMessage struct in memory with necessary information for sending a cross-chain message\\n Client.EVM2AnyMessage memory evm2AnyMessage = Client.EVM2AnyMessage({\\n receiver: abi.encode(receiver), // ABI-encoded\\n data: data, // ABI-encoded string\\n tokenAmounts: new Client.EVMTokenAmount[](0), // Empty array indicating no tokens are being sent\\n extraArgs: Client._argsToBytes(\\n // Additional arguments, setting gas limit\\n Client.EVMExtraArgsV1({ gasLimit: 200_000 })\\n ),\\n // Set the feeToken address, use native token\\n feeToken: address(0)\\n });\\n\\n // Get the fee required to send the message\\n uint256 fees = _getTrajanHorseStorage().router.getFee(destinationChainSelector, evm2AnyMessage);\\n\\n if (msg.value - fundForSoldiers < fees) {\\n revert NotEnoughBalance();\\n }\\n\\n // Send the message through the router and store the returned message ID\\n messageId = _getTrajanHorseStorage().router.ccipSend{ value: fees }(destinationChainSelector, evm2AnyMessage);\\n\\n // Emit an event with message details\\n emit HorseSent(messageId, soldierAmount, fees);\\n\\n // Return the message ID\\n return messageId;\\n }\\n\\n function getFee(uint256 fundForSoldiers) public view returns (uint256 fees, uint256 soldierAmount) {\\n (, int256 answer,,,) = _getTrajanHorseStorage().aggregator.latestRoundData();\\n uint8 decimal = _getTrajanHorseStorage().aggregator.decimals();\\n soldierAmount = fundForSoldiers * uint256(answer) / (10 ** decimal * 1 ether);\\n\\n address receiver = _getTrajanHorseStorage().receiver;\\n uint64 destinationChainSelector = _getTrajanHorseStorage().destinationChainSelector;\\n\\n // encode data\\n bytes memory data = abi.encode(block.chainid, soldierAmount);\\n\\n // Create an EVM2AnyMessage struct in memory with necessary information for sending a cross-chain message\\n Client.EVM2AnyMessage memory evm2AnyMessage = Client.EVM2AnyMessage({\\n receiver: abi.encode(receiver), // ABI-encoded\\n data: data, // ABI-encoded string\\n tokenAmounts: new Client.EVMTokenAmount[](0), // Empty array indicating no tokens are being sent\\n extraArgs: Client._argsToBytes(\\n // Additional arguments, setting gas limit\\n Client.EVMExtraArgsV1({ gasLimit: 200_000 })\\n ),\\n // Set the feeToken address, use native token\\n feeToken: address(0)\\n });\\n\\n // Get the fee required to send the message\\n fees = _getTrajanHorseStorage().router.getFee(destinationChainSelector, evm2AnyMessage);\\n }\\n}\\n\",\"keccak256\":\"0x5b64ab80ba7dfcf5e7ecf203ca6c746d62740c92b7190db91a93f4587f7b6155\",\"license\":\"UNLICENSED\"}},\"version\":1}",
+ "bytecode": "0x60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff16815250348015604257600080fd5b5060805161244961006c60003960008181610f6d01528181610fc2015261117d01526124496000f3fe60806040526004361061009c5760003560e01c806379ba50971161006457806379ba5097146101585780638da5cb5b1461016f578063ad3cb1cc1461019a578063e30c3978146101c5578063f2fde38b146101f0578063fcee45f4146102195761009c565b80634f1ef286146100a157806352d1902d146100bd578063530b97a4146100e8578063715018a61461011157806374af8ff514610128575b600080fd5b6100bb60048036038101906100b691906119e5565b610257565b005b3480156100c957600080fd5b506100d2610276565b6040516100df9190611a5a565b60405180910390f35b3480156100f457600080fd5b5061010f600480360381019061010a9190611aab565b6102a9565b005b34801561011d57600080fd5b5061012661053d565b005b610142600480360381019061013d9190611b26565b610551565b60405161014f9190611a5a565b60405180910390f35b34801561016457600080fd5b5061016d610a00565b005b34801561017b57600080fd5b50610184610a8f565b6040516101919190611b62565b60405180910390f35b3480156101a657600080fd5b506101af610ac7565b6040516101bc9190611bfc565b60405180910390f35b3480156101d157600080fd5b506101da610b00565b6040516101e79190611b62565b60405180910390f35b3480156101fc57600080fd5b5061021760048036038101906102129190611c1e565b610b38565b005b34801561022557600080fd5b50610240600480360381019061023b9190611b26565b610bf4565b60405161024e929190611c5a565b60405180910390f35b61025f610f6b565b61026882611051565b610272828261105c565b5050565b600061028061117b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b60006102b3611202565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156103015750825b9050600060018367ffffffffffffffff16148015610336575060003073ffffffffffffffffffffffffffffffffffffffff163b145b905081158015610344575080155b1561037b576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156103cb5760018560000160086101000a81548160ff0219169083151502179055505b6103d48a61122a565b60006103de61126a565b9050898160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550888160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550878160010160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550868160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505083156105315760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516105289190611cdc565b60405180910390a15b50505050505050505050565b610545611292565b61054f600061122a565b565b600061055b611292565b600061056561126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156105d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f79190611d84565b505050915050600061060761126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610675573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106999190611e38565b90506000670de0b6b3a764000082600a6106b39190611fc7565b6106bd9190612012565b83866106c99190612012565b6106d39190612083565b905060006106df61126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600061070f61126a565b60010160149054906101000a900467ffffffffffffffff1690506000468460405160200161073e929190611c5a565b604051602081830303815290604052905060006040518060a001604052808560405160200161076d9190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff8111156107a2576107a16118ba565b5b6040519080825280602002602001820160405280156107db57816020015b6107c86117fd565b8152602001906001900390816107c05790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610818604051806020016040528062030d40815250611319565b8152509050600061082761126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded85846040518363ffffffff1660e01b815260040161088592919061229f565b602060405180830381865afa1580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c691906122cf565b9050808a346108d591906122fc565b101561090d576040517fad3a8b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61091561126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166396f4e9f98286856040518463ffffffff1660e01b815260040161097492919061229f565b60206040518083038185885af1158015610992573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906109b7919061235c565b9850887faf4d8a84b234410af70315b833c476a761b33559f391cf26d8f3bf7baa5f12ee87836040516109eb929190611c5a565b60405180910390a25050505050505050919050565b6000610a0a611398565b90508073ffffffffffffffffffffffffffffffffffffffff16610a2b610b00565b73ffffffffffffffffffffffffffffffffffffffff1614610a8357806040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a7a9190611b62565b60405180910390fd5b610a8c8161122a565b50565b600080610a9a6113a0565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b600080610b0b6113c8565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b610b40611292565b6000610b4a6113c8565b9050818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff16610bae610a8f565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b6000806000610c0161126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c939190611d84565b5050509150506000610ca361126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d359190611e38565b9050670de0b6b3a764000081600a610d4d9190611fc7565b610d579190612012565b8286610d639190612012565b610d6d9190612083565b92506000610d7961126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000610da961126a565b60010160149054906101000a900467ffffffffffffffff16905060004686604051602001610dd8929190611c5a565b604051602081830303815290604052905060006040518060a0016040528085604051602001610e079190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff811115610e3c57610e3b6118ba565b5b604051908082528060200260200182016040528015610e7557816020015b610e626117fd565b815260200190600190039081610e5a5790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610eb2604051806020016040528062030d40815250611319565b8152509050610ebf61126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded84836040518363ffffffff1660e01b8152600401610f1d92919061229f565b602060405180830381865afa158015610f3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5e91906122cf565b9750505050505050915091565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148061101857507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610fff6113f0565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561104f576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b611059611292565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156110c457506040513d601f19601f820116820180604052508101906110c1919061235c565b60015b61110557816040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016110fc9190611b62565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b811461116c57806040517faa1d49a40000000000000000000000000000000000000000000000000000000081526004016111639190611a5a565b60405180910390fd5b6111768383611447565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614611200576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b60006112346113c8565b90508060000160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055611266826114ba565b5050565b60007fe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00905090565b61129a611398565b73ffffffffffffffffffffffffffffffffffffffff166112b8610a8f565b73ffffffffffffffffffffffffffffffffffffffff1614611317576112db611398565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161130e9190611b62565b60405180910390fd5b565b60606397a657c960e01b8260405160240161133491906123a5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b600033905090565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b60007f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00905090565b600061141e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114508261159b565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a26000815111156114ad576114a78282611668565b506114b6565b6114b56116ec565b5b5050565b60006114c46113a0565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036115f757806040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016115ee9190611b62565b60405180910390fd5b806116247f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff168460405161169291906123fc565b600060405180830381855af49150503d80600081146116cd576040519150601f19603f3d011682016040523d82523d6000602084013e6116d2565b606091505b50915091506116e2858383611729565b9250505092915050565b6000341115611727576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608261173e57611739826117b8565b6117b0565b60008251148015611766575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156117a857836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161179f9190611b62565b60405180910390fd5b8190506117b1565b5b9392505050565b6000815111156117cb5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061186c82611841565b9050919050565b61187c81611861565b811461188757600080fd5b50565b60008135905061189981611873565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6118f2826118a9565b810181811067ffffffffffffffff82111715611911576119106118ba565b5b80604052505050565b600061192461182d565b905061193082826118e9565b919050565b600067ffffffffffffffff8211156119505761194f6118ba565b5b611959826118a9565b9050602081019050919050565b82818337600083830152505050565b600061198861198384611935565b61191a565b9050828152602081018484840111156119a4576119a36118a4565b5b6119af848285611966565b509392505050565b600082601f8301126119cc576119cb61189f565b5b81356119dc848260208601611975565b91505092915050565b600080604083850312156119fc576119fb611837565b5b6000611a0a8582860161188a565b925050602083013567ffffffffffffffff811115611a2b57611a2a61183c565b5b611a37858286016119b7565b9150509250929050565b6000819050919050565b611a5481611a41565b82525050565b6000602082019050611a6f6000830184611a4b565b92915050565b6000819050919050565b611a8881611a75565b8114611a9357600080fd5b50565b600081359050611aa581611a7f565b92915050565b600080600080600060a08688031215611ac757611ac6611837565b5b6000611ad58882890161188a565b9550506020611ae68882890161188a565b9450506040611af78882890161188a565b9350506060611b0888828901611a96565b9250506080611b198882890161188a565b9150509295509295909350565b600060208284031215611b3c57611b3b611837565b5b6000611b4a84828501611a96565b91505092915050565b611b5c81611861565b82525050565b6000602082019050611b776000830184611b53565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611bb7578082015181840152602081019050611b9c565b60008484015250505050565b6000611bce82611b7d565b611bd88185611b88565b9350611be8818560208601611b99565b611bf1816118a9565b840191505092915050565b60006020820190508181036000830152611c168184611bc3565b905092915050565b600060208284031215611c3457611c33611837565b5b6000611c428482850161188a565b91505092915050565b611c5481611a75565b82525050565b6000604082019050611c6f6000830185611c4b565b611c7c6020830184611c4b565b9392505050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b6000611cc6611cc1611cbc84611c83565b611ca1565b611c8d565b9050919050565b611cd681611cab565b82525050565b6000602082019050611cf16000830184611ccd565b92915050565b600069ffffffffffffffffffff82169050919050565b611d1681611cf7565b8114611d2157600080fd5b50565b600081519050611d3381611d0d565b92915050565b6000819050919050565b611d4c81611d39565b8114611d5757600080fd5b50565b600081519050611d6981611d43565b92915050565b600081519050611d7e81611a7f565b92915050565b600080600080600060a08688031215611da057611d9f611837565b5b6000611dae88828901611d24565b9550506020611dbf88828901611d5a565b9450506040611dd088828901611d6f565b9350506060611de188828901611d6f565b9250506080611df288828901611d24565b9150509295509295909350565b600060ff82169050919050565b611e1581611dff565b8114611e2057600080fd5b50565b600081519050611e3281611e0c565b92915050565b600060208284031215611e4e57611e4d611837565b5b6000611e5c84828501611e23565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611eeb57808604811115611ec757611ec6611e65565b5b6001851615611ed65780820291505b8081029050611ee485611e94565b9450611eab565b94509492505050565b600082611f045760019050611fc0565b81611f125760009050611fc0565b8160018114611f285760028114611f3257611f61565b6001915050611fc0565b60ff841115611f4457611f43611e65565b5b8360020a915084821115611f5b57611f5a611e65565b5b50611fc0565b5060208310610133831016604e8410600b8410161715611f965782820a905083811115611f9157611f90611e65565b5b611fc0565b611fa38484846001611ea1565b92509050818404811115611fba57611fb9611e65565b5b81810290505b9392505050565b6000611fd282611a75565b9150611fdd83611dff565b925061200a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611ef4565b905092915050565b600061201d82611a75565b915061202883611a75565b925082820261203681611a75565b9150828204841483151761204d5761204c611e65565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061208e82611a75565b915061209983611a75565b9250826120a9576120a8612054565b5b828204905092915050565b6120bd81611c8d565b82525050565b600081519050919050565b600082825260208201905092915050565b60006120ea826120c3565b6120f481856120ce565b9350612104818560208601611b99565b61210d816118a9565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61214d81611861565b82525050565b61215c81611a75565b82525050565b6040820160008201516121786000850182612144565b50602082015161218b6020850182612153565b50505050565b600061219d8383612162565b60408301905092915050565b6000602082019050919050565b60006121c182612118565b6121cb8185612123565b93506121d683612134565b8060005b838110156122075781516121ee8882612191565b97506121f9836121a9565b9250506001810190506121da565b5085935050505092915050565b600060a083016000830151848203600086015261223182826120df565b9150506020830151848203602086015261224b82826120df565b9150506040830151848203604086015261226582826121b6565b915050606083015161227a6060860182612144565b506080830151848203608086015261229282826120df565b9150508091505092915050565b60006040820190506122b460008301856120b4565b81810360208301526122c68184612214565b90509392505050565b6000602082840312156122e5576122e4611837565b5b60006122f384828501611d6f565b91505092915050565b600061230782611a75565b915061231283611a75565b925082820390508181111561232a57612329611e65565b5b92915050565b61233981611a41565b811461234457600080fd5b50565b60008151905061235681612330565b92915050565b60006020828403121561237257612371611837565b5b600061238084828501612347565b91505092915050565b60208201600082015161239f6000850182612153565b50505050565b60006020820190506123ba6000830184612389565b92915050565b600081905092915050565b60006123d6826120c3565b6123e081856123c0565b93506123f0818560208601611b99565b80840191505092915050565b600061240882846123cb565b91508190509291505056fea264697066735822122062284939d8f0beb87eac9511f3cc420ed85a24701ee09e6f5cf06bc1c840945964736f6c63430008190033",
+ "deployedBytecode": "0x60806040526004361061009c5760003560e01c806379ba50971161006457806379ba5097146101585780638da5cb5b1461016f578063ad3cb1cc1461019a578063e30c3978146101c5578063f2fde38b146101f0578063fcee45f4146102195761009c565b80634f1ef286146100a157806352d1902d146100bd578063530b97a4146100e8578063715018a61461011157806374af8ff514610128575b600080fd5b6100bb60048036038101906100b691906119e5565b610257565b005b3480156100c957600080fd5b506100d2610276565b6040516100df9190611a5a565b60405180910390f35b3480156100f457600080fd5b5061010f600480360381019061010a9190611aab565b6102a9565b005b34801561011d57600080fd5b5061012661053d565b005b610142600480360381019061013d9190611b26565b610551565b60405161014f9190611a5a565b60405180910390f35b34801561016457600080fd5b5061016d610a00565b005b34801561017b57600080fd5b50610184610a8f565b6040516101919190611b62565b60405180910390f35b3480156101a657600080fd5b506101af610ac7565b6040516101bc9190611bfc565b60405180910390f35b3480156101d157600080fd5b506101da610b00565b6040516101e79190611b62565b60405180910390f35b3480156101fc57600080fd5b5061021760048036038101906102129190611c1e565b610b38565b005b34801561022557600080fd5b50610240600480360381019061023b9190611b26565b610bf4565b60405161024e929190611c5a565b60405180910390f35b61025f610f6b565b61026882611051565b610272828261105c565b5050565b600061028061117b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b60006102b3611202565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156103015750825b9050600060018367ffffffffffffffff16148015610336575060003073ffffffffffffffffffffffffffffffffffffffff163b145b905081158015610344575080155b1561037b576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156103cb5760018560000160086101000a81548160ff0219169083151502179055505b6103d48a61122a565b60006103de61126a565b9050898160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550888160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550878160010160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550868160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505083156105315760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516105289190611cdc565b60405180910390a15b50505050505050505050565b610545611292565b61054f600061122a565b565b600061055b611292565b600061056561126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156105d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f79190611d84565b505050915050600061060761126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610675573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106999190611e38565b90506000670de0b6b3a764000082600a6106b39190611fc7565b6106bd9190612012565b83866106c99190612012565b6106d39190612083565b905060006106df61126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600061070f61126a565b60010160149054906101000a900467ffffffffffffffff1690506000468460405160200161073e929190611c5a565b604051602081830303815290604052905060006040518060a001604052808560405160200161076d9190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff8111156107a2576107a16118ba565b5b6040519080825280602002602001820160405280156107db57816020015b6107c86117fd565b8152602001906001900390816107c05790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610818604051806020016040528062030d40815250611319565b8152509050600061082761126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded85846040518363ffffffff1660e01b815260040161088592919061229f565b602060405180830381865afa1580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c691906122cf565b9050808a346108d591906122fc565b101561090d576040517fad3a8b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61091561126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166396f4e9f98286856040518463ffffffff1660e01b815260040161097492919061229f565b60206040518083038185885af1158015610992573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906109b7919061235c565b9850887faf4d8a84b234410af70315b833c476a761b33559f391cf26d8f3bf7baa5f12ee87836040516109eb929190611c5a565b60405180910390a25050505050505050919050565b6000610a0a611398565b90508073ffffffffffffffffffffffffffffffffffffffff16610a2b610b00565b73ffffffffffffffffffffffffffffffffffffffff1614610a8357806040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a7a9190611b62565b60405180910390fd5b610a8c8161122a565b50565b600080610a9a6113a0565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b600080610b0b6113c8565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b610b40611292565b6000610b4a6113c8565b9050818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff16610bae610a8f565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b6000806000610c0161126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c939190611d84565b5050509150506000610ca361126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d359190611e38565b9050670de0b6b3a764000081600a610d4d9190611fc7565b610d579190612012565b8286610d639190612012565b610d6d9190612083565b92506000610d7961126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000610da961126a565b60010160149054906101000a900467ffffffffffffffff16905060004686604051602001610dd8929190611c5a565b604051602081830303815290604052905060006040518060a0016040528085604051602001610e079190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff811115610e3c57610e3b6118ba565b5b604051908082528060200260200182016040528015610e7557816020015b610e626117fd565b815260200190600190039081610e5a5790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610eb2604051806020016040528062030d40815250611319565b8152509050610ebf61126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded84836040518363ffffffff1660e01b8152600401610f1d92919061229f565b602060405180830381865afa158015610f3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5e91906122cf565b9750505050505050915091565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148061101857507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610fff6113f0565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561104f576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b611059611292565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156110c457506040513d601f19601f820116820180604052508101906110c1919061235c565b60015b61110557816040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016110fc9190611b62565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b811461116c57806040517faa1d49a40000000000000000000000000000000000000000000000000000000081526004016111639190611a5a565b60405180910390fd5b6111768383611447565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614611200576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b60006112346113c8565b90508060000160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055611266826114ba565b5050565b60007fe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00905090565b61129a611398565b73ffffffffffffffffffffffffffffffffffffffff166112b8610a8f565b73ffffffffffffffffffffffffffffffffffffffff1614611317576112db611398565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161130e9190611b62565b60405180910390fd5b565b60606397a657c960e01b8260405160240161133491906123a5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b600033905090565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b60007f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00905090565b600061141e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114508261159b565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a26000815111156114ad576114a78282611668565b506114b6565b6114b56116ec565b5b5050565b60006114c46113a0565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036115f757806040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016115ee9190611b62565b60405180910390fd5b806116247f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff168460405161169291906123fc565b600060405180830381855af49150503d80600081146116cd576040519150601f19603f3d011682016040523d82523d6000602084013e6116d2565b606091505b50915091506116e2858383611729565b9250505092915050565b6000341115611727576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608261173e57611739826117b8565b6117b0565b60008251148015611766575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156117a857836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161179f9190611b62565b60405180910390fd5b8190506117b1565b5b9392505050565b6000815111156117cb5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061186c82611841565b9050919050565b61187c81611861565b811461188757600080fd5b50565b60008135905061189981611873565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6118f2826118a9565b810181811067ffffffffffffffff82111715611911576119106118ba565b5b80604052505050565b600061192461182d565b905061193082826118e9565b919050565b600067ffffffffffffffff8211156119505761194f6118ba565b5b611959826118a9565b9050602081019050919050565b82818337600083830152505050565b600061198861198384611935565b61191a565b9050828152602081018484840111156119a4576119a36118a4565b5b6119af848285611966565b509392505050565b600082601f8301126119cc576119cb61189f565b5b81356119dc848260208601611975565b91505092915050565b600080604083850312156119fc576119fb611837565b5b6000611a0a8582860161188a565b925050602083013567ffffffffffffffff811115611a2b57611a2a61183c565b5b611a37858286016119b7565b9150509250929050565b6000819050919050565b611a5481611a41565b82525050565b6000602082019050611a6f6000830184611a4b565b92915050565b6000819050919050565b611a8881611a75565b8114611a9357600080fd5b50565b600081359050611aa581611a7f565b92915050565b600080600080600060a08688031215611ac757611ac6611837565b5b6000611ad58882890161188a565b9550506020611ae68882890161188a565b9450506040611af78882890161188a565b9350506060611b0888828901611a96565b9250506080611b198882890161188a565b9150509295509295909350565b600060208284031215611b3c57611b3b611837565b5b6000611b4a84828501611a96565b91505092915050565b611b5c81611861565b82525050565b6000602082019050611b776000830184611b53565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611bb7578082015181840152602081019050611b9c565b60008484015250505050565b6000611bce82611b7d565b611bd88185611b88565b9350611be8818560208601611b99565b611bf1816118a9565b840191505092915050565b60006020820190508181036000830152611c168184611bc3565b905092915050565b600060208284031215611c3457611c33611837565b5b6000611c428482850161188a565b91505092915050565b611c5481611a75565b82525050565b6000604082019050611c6f6000830185611c4b565b611c7c6020830184611c4b565b9392505050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b6000611cc6611cc1611cbc84611c83565b611ca1565b611c8d565b9050919050565b611cd681611cab565b82525050565b6000602082019050611cf16000830184611ccd565b92915050565b600069ffffffffffffffffffff82169050919050565b611d1681611cf7565b8114611d2157600080fd5b50565b600081519050611d3381611d0d565b92915050565b6000819050919050565b611d4c81611d39565b8114611d5757600080fd5b50565b600081519050611d6981611d43565b92915050565b600081519050611d7e81611a7f565b92915050565b600080600080600060a08688031215611da057611d9f611837565b5b6000611dae88828901611d24565b9550506020611dbf88828901611d5a565b9450506040611dd088828901611d6f565b9350506060611de188828901611d6f565b9250506080611df288828901611d24565b9150509295509295909350565b600060ff82169050919050565b611e1581611dff565b8114611e2057600080fd5b50565b600081519050611e3281611e0c565b92915050565b600060208284031215611e4e57611e4d611837565b5b6000611e5c84828501611e23565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611eeb57808604811115611ec757611ec6611e65565b5b6001851615611ed65780820291505b8081029050611ee485611e94565b9450611eab565b94509492505050565b600082611f045760019050611fc0565b81611f125760009050611fc0565b8160018114611f285760028114611f3257611f61565b6001915050611fc0565b60ff841115611f4457611f43611e65565b5b8360020a915084821115611f5b57611f5a611e65565b5b50611fc0565b5060208310610133831016604e8410600b8410161715611f965782820a905083811115611f9157611f90611e65565b5b611fc0565b611fa38484846001611ea1565b92509050818404811115611fba57611fb9611e65565b5b81810290505b9392505050565b6000611fd282611a75565b9150611fdd83611dff565b925061200a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611ef4565b905092915050565b600061201d82611a75565b915061202883611a75565b925082820261203681611a75565b9150828204841483151761204d5761204c611e65565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061208e82611a75565b915061209983611a75565b9250826120a9576120a8612054565b5b828204905092915050565b6120bd81611c8d565b82525050565b600081519050919050565b600082825260208201905092915050565b60006120ea826120c3565b6120f481856120ce565b9350612104818560208601611b99565b61210d816118a9565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61214d81611861565b82525050565b61215c81611a75565b82525050565b6040820160008201516121786000850182612144565b50602082015161218b6020850182612153565b50505050565b600061219d8383612162565b60408301905092915050565b6000602082019050919050565b60006121c182612118565b6121cb8185612123565b93506121d683612134565b8060005b838110156122075781516121ee8882612191565b97506121f9836121a9565b9250506001810190506121da565b5085935050505092915050565b600060a083016000830151848203600086015261223182826120df565b9150506020830151848203602086015261224b82826120df565b9150506040830151848203604086015261226582826121b6565b915050606083015161227a6060860182612144565b506080830151848203608086015261229282826120df565b9150508091505092915050565b60006040820190506122b460008301856120b4565b81810360208301526122c68184612214565b90509392505050565b6000602082840312156122e5576122e4611837565b5b60006122f384828501611d6f565b91505092915050565b600061230782611a75565b915061231283611a75565b925082820390508181111561232a57612329611e65565b5b92915050565b61233981611a41565b811461234457600080fd5b50565b60008151905061235681612330565b92915050565b60006020828403121561237257612371611837565b5b600061238084828501612347565b91505092915050565b60208201600082015161239f6000850182612153565b50505050565b60006020820190506123ba6000830184612389565b92915050565b600081905092915050565b60006123d6826120c3565b6123e081856123c0565b93506123f0818560208601611b99565b80840191505092915050565b600061240882846123cb565b91508190509291505056fea264697066735822122062284939d8f0beb87eac9511f3cc420ed85a24701ee09e6f5cf06bc1c840945964736f6c63430008190033",
+ "devdoc": {
+ "errors": {
+ "AddressEmptyCode(address)": [
+ {
+ "details": "There's no code at `target` (it is not a contract)."
+ }
+ ],
+ "ERC1967InvalidImplementation(address)": [
+ {
+ "details": "The `implementation` of the proxy is invalid."
+ }
+ ],
+ "ERC1967NonPayable()": [
+ {
+ "details": "An upgrade function sees `msg.value > 0` that may be lost."
+ }
+ ],
+ "FailedInnerCall()": [
+ {
+ "details": "A call to an address target failed. The target may have reverted."
+ }
+ ],
+ "InvalidInitialization()": [
+ {
+ "details": "The contract is already initialized."
+ }
+ ],
+ "NotInitializing()": [
+ {
+ "details": "The contract is not initializing."
+ }
+ ],
+ "OwnableInvalidOwner(address)": [
+ {
+ "details": "The owner is not a valid owner account. (eg. `address(0)`)"
+ }
+ ],
+ "OwnableUnauthorizedAccount(address)": [
+ {
+ "details": "The caller account is not authorized to perform an operation."
+ }
+ ],
+ "UUPSUnauthorizedCallContext()": [
+ {
+ "details": "The call is from an unauthorized context."
+ }
+ ],
+ "UUPSUnsupportedProxiableUUID(bytes32)": [
+ {
+ "details": "The storage `slot` is unsupported as a UUID."
+ }
+ ]
+ },
+ "events": {
+ "Initialized(uint64)": {
+ "details": "Triggered when the contract has been initialized or reinitialized."
+ },
+ "Upgraded(address)": {
+ "details": "Emitted when the implementation is upgraded."
+ }
+ },
+ "kind": "dev",
+ "methods": {
+ "acceptOwnership()": {
+ "details": "The new owner accepts the ownership transfer."
+ },
+ "owner()": {
+ "details": "Returns the address of the current owner."
+ },
+ "pendingOwner()": {
+ "details": "Returns the address of the pending owner."
+ },
+ "proxiableUUID()": {
+ "details": "Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier."
+ },
+ "renounceOwnership()": {
+ "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."
+ },
+ "sendHorse(uint256)": {
+ "returns": {
+ "messageId": "The ID of the message that was sent."
+ }
+ },
+ "transferOwnership(address)": {
+ "details": "Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner."
+ },
+ "upgradeToAndCall(address,bytes)": {
+ "custom:oz-upgrades-unsafe-allow-reachable": "delegatecall",
+ "details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."
+ }
+ },
+ "version": 1
+ },
+ "userdoc": {
+ "kind": "user",
+ "methods": {
+ "sendHorse(uint256)": {
+ "notice": "Sends data to receiver on the destination chain."
+ }
+ },
+ "version": 1
+ },
+ "storageLayout": {
+ "storage": [],
+ "types": null
+ }
+}
\ No newline at end of file
diff --git a/packages/contracts/deployments/base_sepolia/TrojanHorse_Proxy.json b/packages/contracts/deployments/base_sepolia/TrojanHorse_Proxy.json
new file mode 100644
index 0000000..c106da5
--- /dev/null
+++ b/packages/contracts/deployments/base_sepolia/TrojanHorse_Proxy.json
@@ -0,0 +1,137 @@
+{
+ "address": "0xFE823dddB1e0f5162a1A500672FB06f11142fF14",
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "_logic",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "_data",
+ "type": "bytes"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "previousAdmin",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "newAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "AdminChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "beacon",
+ "type": "address"
+ }
+ ],
+ "name": "BeaconUpgraded",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "Upgraded",
+ "type": "event"
+ },
+ {
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "stateMutability": "payable",
+ "type": "receive"
+ }
+ ],
+ "transactionHash": "0x9a9c9a1dea4565734c7b96d2f4b4e4927d18e45e76fbfa1b048cf628f341e7e0",
+ "receipt": {
+ "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
+ "from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "contractAddress": null,
+ "transactionIndex": 2,
+ "gasUsed": "375147",
+ "logsBloom": "0x00000000000000000000000000002000400000000000000008800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000000010000000000000000000400000000000000000000800000000000000000000000080000000000000000000000000000000000100000000000001000000000000000000000000800000000000000020000000000000000000000000000000000004000400020000000020000000000000000000000000000000800000000000000000000000000000000000",
+ "blockHash": "0x75f325eee880a98e2331f6f2d51edb5517ef405eb86839b46585844d5b35b3a8",
+ "transactionHash": "0x9a9c9a1dea4565734c7b96d2f4b4e4927d18e45e76fbfa1b048cf628f341e7e0",
+ "logs": [
+ {
+ "transactionIndex": 2,
+ "blockNumber": 8638775,
+ "transactionHash": "0x9a9c9a1dea4565734c7b96d2f4b4e4927d18e45e76fbfa1b048cf628f341e7e0",
+ "address": "0xFE823dddB1e0f5162a1A500672FB06f11142fF14",
+ "topics": [
+ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
+ "0x000000000000000000000000b0d02c3025068d889e3a6d77ed48a9f7062be153"
+ ],
+ "data": "0x",
+ "logIndex": 0,
+ "blockHash": "0x75f325eee880a98e2331f6f2d51edb5517ef405eb86839b46585844d5b35b3a8"
+ },
+ {
+ "transactionIndex": 2,
+ "blockNumber": 8638775,
+ "transactionHash": "0x9a9c9a1dea4565734c7b96d2f4b4e4927d18e45e76fbfa1b048cf628f341e7e0",
+ "address": "0xFE823dddB1e0f5162a1A500672FB06f11142fF14",
+ "topics": [
+ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "0x000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560"
+ ],
+ "data": "0x",
+ "logIndex": 1,
+ "blockHash": "0x75f325eee880a98e2331f6f2d51edb5517ef405eb86839b46585844d5b35b3a8"
+ },
+ {
+ "transactionIndex": 2,
+ "blockNumber": 8638775,
+ "transactionHash": "0x9a9c9a1dea4565734c7b96d2f4b4e4927d18e45e76fbfa1b048cf628f341e7e0",
+ "address": "0xFE823dddB1e0f5162a1A500672FB06f11142fF14",
+ "topics": [
+ "0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"
+ ],
+ "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
+ "logIndex": 2,
+ "blockHash": "0x75f325eee880a98e2331f6f2d51edb5517ef405eb86839b46585844d5b35b3a8"
+ }
+ ],
+ "blockNumber": 8638775,
+ "cumulativeGasUsed": "441382",
+ "status": 1,
+ "byzantium": true
+ },
+ "args": [
+ "0xB0D02c3025068D889E3a6d77ed48a9F7062bE153",
+ "0x530b97a4000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560000000000000000000000000d3b06cebf099ce7da4accf578aaebfdbd6e88a930000000000000000000000004adc67696ba383f43dd60a9e78f2c97fbbfc7cb1000000000000000000000000000000000000000000000000de41ba4fc9d91ad900000000000000000000000010d5617ef73e62545f45017a0f85847c081b9fce"
+ ],
+ "numDeployments": 1,
+ "bytecode": "0x60806040526040516107353803806107358339810160408190526100229161031e565b61002e82826000610035565b505061043b565b61003e8361006b565b60008251118061004b5750805b156100665761006483836100ab60201b6100291760201c565b505b505050565b610074816100d7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100d0838360405180606001604052806027815260200161070e602791396101a9565b9392505050565b6100ea8161022260201b6100551760201c565b6101515760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61023160201b6100641760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060600080856001600160a01b0316856040516101c691906103ec565b600060405180830381855af49150503d8060008114610201576040519150601f19603f3d011682016040523d82523d6000602084013e610206565b606091505b50909250905061021886838387610234565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102a0578251610299576001600160a01b0385163b6102995760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610148565b50816102aa565b6102aa83836102b2565b949350505050565b8151156102c25781518083602001fd5b8060405162461bcd60e51b81526004016101489190610408565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561030d5781810151838201526020016102f5565b838111156100645750506000910152565b6000806040838503121561033157600080fd5b82516001600160a01b038116811461034857600080fd5b60208401519092506001600160401b038082111561036557600080fd5b818501915085601f83011261037957600080fd5b81518181111561038b5761038b6102dc565b604051601f8201601f19908116603f011681019083821181831017156103b3576103b36102dc565b816040528281528860208487010111156103cc57600080fd5b6103dd8360208301602088016102f2565b80955050505050509250929050565b600082516103fe8184602087016102f2565b9190910192915050565b60208152600082518060208401526104278160408501602087016102f2565b601f01601f19169190910160400192915050565b6102c48061044a6000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",
+ "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033"
+}
\ No newline at end of file
diff --git a/packages/contracts/deployments/bnb_test/.chainId b/packages/contracts/deployments/bnb_test/.chainId
new file mode 100644
index 0000000..c4fbb1c
--- /dev/null
+++ b/packages/contracts/deployments/bnb_test/.chainId
@@ -0,0 +1 @@
+97
\ No newline at end of file
diff --git a/packages/contracts/deployments/bnb_test/TrojanHorse.json b/packages/contracts/deployments/bnb_test/TrojanHorse.json
new file mode 100644
index 0000000..76d91ef
--- /dev/null
+++ b/packages/contracts/deployments/bnb_test/TrojanHorse.json
@@ -0,0 +1,482 @@
+{
+ "address": "0x493A69ec1de995B5b0fB968Bc67022D1C54E490e",
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "previousAdmin",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "newAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "AdminChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "beacon",
+ "type": "address"
+ }
+ ],
+ "name": "BeaconUpgraded",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "Upgraded",
+ "type": "event"
+ },
+ {
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "stateMutability": "payable",
+ "type": "receive"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "target",
+ "type": "address"
+ }
+ ],
+ "name": "AddressEmptyCode",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "ERC1967InvalidImplementation",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "ERC1967NonPayable",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "FailedInnerCall",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidInitialization",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotEnoughBalance",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotInitializing",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableInvalidOwner",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableUnauthorizedAccount",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "UUPSUnauthorizedCallContext",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "slot",
+ "type": "bytes32"
+ }
+ ],
+ "name": "UUPSUnsupportedProxiableUUID",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ }
+ ],
+ "name": "HorseSent",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint64",
+ "name": "version",
+ "type": "uint64"
+ }
+ ],
+ "name": "Initialized",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferStarted",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferred",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "UPGRADE_INTERFACE_VERSION",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "acceptOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "getFee",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "router_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "aggregator_",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "chainSelector_",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "receiver_",
+ "type": "address"
+ }
+ ],
+ "name": "initialize",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "owner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "pendingOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "proxiableUUID",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "renounceOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "sendHorse",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "transferOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newImplementation",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "upgradeToAndCall",
+ "outputs": [],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "_logic",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "_data",
+ "type": "bytes"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "constructor"
+ }
+ ],
+ "transactionHash": "0x363396cbefe91b1f2dd8fd9b13bde6023510c3ab4e2e37f102daa89ee8483cc6",
+ "receipt": {
+ "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
+ "from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "contractAddress": null,
+ "transactionIndex": 1,
+ "gasUsed": "375147",
+ "logsBloom": "0x00000000000000000000000000002000400000000000000000800000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000002000001000000080000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000800000000000000000000000080000000000000000000000000000000000100000000000001000000000000000000000000000000000000000020000000000000000010000000000000000004000400020000000020000000000000000000000000000000800000000000000000000000000000000000",
+ "blockHash": "0x1e782b9299451a4f4ead6ca76b42a275385b8d2b4fe0ad9b3097d76ad086ed7e",
+ "transactionHash": "0x363396cbefe91b1f2dd8fd9b13bde6023510c3ab4e2e37f102daa89ee8483cc6",
+ "logs": [
+ {
+ "transactionIndex": 1,
+ "blockNumber": 39444384,
+ "transactionHash": "0x363396cbefe91b1f2dd8fd9b13bde6023510c3ab4e2e37f102daa89ee8483cc6",
+ "address": "0x493A69ec1de995B5b0fB968Bc67022D1C54E490e",
+ "topics": [
+ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
+ "0x000000000000000000000000b0d02c3025068d889e3a6d77ed48a9f7062be153"
+ ],
+ "data": "0x",
+ "logIndex": 1,
+ "blockHash": "0x1e782b9299451a4f4ead6ca76b42a275385b8d2b4fe0ad9b3097d76ad086ed7e"
+ },
+ {
+ "transactionIndex": 1,
+ "blockNumber": 39444384,
+ "transactionHash": "0x363396cbefe91b1f2dd8fd9b13bde6023510c3ab4e2e37f102daa89ee8483cc6",
+ "address": "0x493A69ec1de995B5b0fB968Bc67022D1C54E490e",
+ "topics": [
+ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "0x000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560"
+ ],
+ "data": "0x",
+ "logIndex": 2,
+ "blockHash": "0x1e782b9299451a4f4ead6ca76b42a275385b8d2b4fe0ad9b3097d76ad086ed7e"
+ },
+ {
+ "transactionIndex": 1,
+ "blockNumber": 39444384,
+ "transactionHash": "0x363396cbefe91b1f2dd8fd9b13bde6023510c3ab4e2e37f102daa89ee8483cc6",
+ "address": "0x493A69ec1de995B5b0fB968Bc67022D1C54E490e",
+ "topics": [
+ "0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"
+ ],
+ "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
+ "logIndex": 3,
+ "blockHash": "0x1e782b9299451a4f4ead6ca76b42a275385b8d2b4fe0ad9b3097d76ad086ed7e"
+ }
+ ],
+ "blockNumber": 39444384,
+ "cumulativeGasUsed": "436647",
+ "status": 1,
+ "byzantium": true
+ },
+ "args": [
+ "0xB0D02c3025068D889E3a6d77ed48a9F7062bE153",
+ "0x530b97a4000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560000000000000000000000000e1053ae1857476f36a3c62580ff9b016e8ee8f6f0000000000000000000000002514895c72f50d8bd4b4f9b1110f0d6bd2c97526000000000000000000000000000000000000000000000000de41ba4fc9d91ad900000000000000000000000010d5617ef73e62545f45017a0f85847c081b9fce"
+ ],
+ "numDeployments": 1,
+ "bytecode": "0x60806040526040516107353803806107358339810160408190526100229161031e565b61002e82826000610035565b505061043b565b61003e8361006b565b60008251118061004b5750805b156100665761006483836100ab60201b6100291760201c565b505b505050565b610074816100d7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100d0838360405180606001604052806027815260200161070e602791396101a9565b9392505050565b6100ea8161022260201b6100551760201c565b6101515760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61023160201b6100641760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060600080856001600160a01b0316856040516101c691906103ec565b600060405180830381855af49150503d8060008114610201576040519150601f19603f3d011682016040523d82523d6000602084013e610206565b606091505b50909250905061021886838387610234565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102a0578251610299576001600160a01b0385163b6102995760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610148565b50816102aa565b6102aa83836102b2565b949350505050565b8151156102c25781518083602001fd5b8060405162461bcd60e51b81526004016101489190610408565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561030d5781810151838201526020016102f5565b838111156100645750506000910152565b6000806040838503121561033157600080fd5b82516001600160a01b038116811461034857600080fd5b60208401519092506001600160401b038082111561036557600080fd5b818501915085601f83011261037957600080fd5b81518181111561038b5761038b6102dc565b604051601f8201601f19908116603f011681019083821181831017156103b3576103b36102dc565b816040528281528860208487010111156103cc57600080fd5b6103dd8360208301602088016102f2565b80955050505050509250929050565b600082516103fe8184602087016102f2565b9190910192915050565b60208152600082518060208401526104278160408501602087016102f2565b601f01601f19169190910160400192915050565b6102c48061044a6000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",
+ "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033",
+ "execute": {
+ "methodName": "initialize",
+ "args": [
+ "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "0xE1053aE1857476f36A3C62580FF9b016E8EE8F6f",
+ "0x2514895c72f50D8bd4B4F9b1110F0D6bD2c97526",
+ "16015286601757825753",
+ "0x10d5617ef73E62545F45017A0F85847c081b9fcE"
+ ]
+ },
+ "implementation": "0xB0D02c3025068D889E3a6d77ed48a9F7062bE153"
+}
\ No newline at end of file
diff --git a/packages/contracts/deployments/bnb_test/TrojanHorse_Implementation.json b/packages/contracts/deployments/bnb_test/TrojanHorse_Implementation.json
new file mode 100644
index 0000000..96ac71a
--- /dev/null
+++ b/packages/contracts/deployments/bnb_test/TrojanHorse_Implementation.json
@@ -0,0 +1,480 @@
+{
+ "address": "0xB0D02c3025068D889E3a6d77ed48a9F7062bE153",
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "target",
+ "type": "address"
+ }
+ ],
+ "name": "AddressEmptyCode",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "ERC1967InvalidImplementation",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "ERC1967NonPayable",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "FailedInnerCall",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidInitialization",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotEnoughBalance",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotInitializing",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableInvalidOwner",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableUnauthorizedAccount",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "UUPSUnauthorizedCallContext",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "slot",
+ "type": "bytes32"
+ }
+ ],
+ "name": "UUPSUnsupportedProxiableUUID",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ }
+ ],
+ "name": "HorseSent",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint64",
+ "name": "version",
+ "type": "uint64"
+ }
+ ],
+ "name": "Initialized",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferStarted",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferred",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "Upgraded",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "UPGRADE_INTERFACE_VERSION",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "acceptOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "getFee",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "router_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "aggregator_",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "chainSelector_",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "receiver_",
+ "type": "address"
+ }
+ ],
+ "name": "initialize",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "owner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "pendingOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "proxiableUUID",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "renounceOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "sendHorse",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "transferOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newImplementation",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "upgradeToAndCall",
+ "outputs": [],
+ "stateMutability": "payable",
+ "type": "function"
+ }
+ ],
+ "transactionHash": "0x98a6e1e1e010fd854692d274655af0dc8fbbcc1d2915272e850966225c57ddb8",
+ "receipt": {
+ "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
+ "from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "contractAddress": null,
+ "transactionIndex": 1,
+ "gasUsed": "2057987",
+ "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "blockHash": "0xf975c5700bc4211c2f7994940d5fd598d23a14c7ae6697e4535b5d5f519f4c29",
+ "transactionHash": "0x98a6e1e1e010fd854692d274655af0dc8fbbcc1d2915272e850966225c57ddb8",
+ "logs": [],
+ "blockNumber": 39444382,
+ "cumulativeGasUsed": "2091178",
+ "status": 1,
+ "byzantium": true
+ },
+ "args": [],
+ "numDeployments": 1,
+ "solcInputHash": "072036421b95051681b93d5e2153ae28",
+ "metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ERC1967InvalidImplementation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC1967NonPayable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedInnerCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotEnoughBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UUPSUnauthorizedCallContext\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"slot\",\"type\":\"bytes32\"}],\"name\":\"UUPSUnsupportedProxiableUUID\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"soldierAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"}],\"name\":\"HorseSent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"UPGRADE_INTERFACE_VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fundForSoldiers\",\"type\":\"uint256\"}],\"name\":\"getFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"soldierAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"router_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"aggregator_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainSelector_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fundForSoldiers\",\"type\":\"uint256\"}],\"name\":\"sendHorse\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"AddressEmptyCode(address)\":[{\"details\":\"There's no code at `target` (it is not a contract).\"}],\"ERC1967InvalidImplementation(address)\":[{\"details\":\"The `implementation` of the proxy is invalid.\"}],\"ERC1967NonPayable()\":[{\"details\":\"An upgrade function sees `msg.value > 0` that may be lost.\"}],\"FailedInnerCall()\":[{\"details\":\"A call to an address target failed. The target may have reverted.\"}],\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"UUPSUnauthorizedCallContext()\":[{\"details\":\"The call is from an unauthorized context.\"}],\"UUPSUnsupportedProxiableUUID(bytes32)\":[{\"details\":\"The storage `slot` is unsupported as a UUID.\"}]},\"events\":{\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"acceptOwnership()\":{\"details\":\"The new owner accepts the ownership transfer.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pendingOwner()\":{\"details\":\"Returns the address of the pending owner.\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"sendHorse(uint256)\":{\"returns\":{\"messageId\":\"The ID of the message that was sent.\"}},\"transferOwnership(address)\":{\"details\":\"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"sendHorse(uint256)\":{\"notice\":\"Sends data to receiver on the destination chain.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/TrojanHorse.sol\":\"TrojanHorse\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {Client} from \\\"../libraries/Client.sol\\\";\\n\\ninterface IRouterClient {\\n error UnsupportedDestinationChain(uint64 destChainSelector);\\n error InsufficientFeeTokenAmount();\\n error InvalidMsgValue();\\n\\n /// @notice Checks if the given chain ID is supported for sending/receiving.\\n /// @param chainSelector The chain to check.\\n /// @return supported is true if it is supported, false if not.\\n function isChainSupported(uint64 chainSelector) external view returns (bool supported);\\n\\n /// @notice Gets a list of all supported tokens which can be sent or received\\n /// to/from a given chain id.\\n /// @param chainSelector The chainSelector.\\n /// @return tokens The addresses of all tokens that are supported.\\n function getSupportedTokens(uint64 chainSelector) external view returns (address[] memory tokens);\\n\\n /// @param destinationChainSelector The destination chainSelector\\n /// @param message The cross-chain CCIP message including data and/or tokens\\n /// @return fee returns execution fee for the message\\n /// delivery to destination chain, denominated in the feeToken specified in the message.\\n /// @dev Reverts with appropriate reason upon invalid message.\\n function getFee(\\n uint64 destinationChainSelector,\\n Client.EVM2AnyMessage memory message\\n ) external view returns (uint256 fee);\\n\\n /// @notice Request a message to be sent to the destination chain\\n /// @param destinationChainSelector The destination chain ID\\n /// @param message The cross-chain CCIP message including data and/or tokens\\n /// @return messageId The message ID\\n /// @dev Note if msg.value is larger than the required fee (from getFee) we accept\\n /// the overpayment with no refund.\\n /// @dev Reverts with appropriate reason upon invalid message.\\n function ccipSend(\\n uint64 destinationChainSelector,\\n Client.EVM2AnyMessage calldata message\\n ) external payable returns (bytes32);\\n}\\n\",\"keccak256\":\"0x7f2fdd93e516b7476c6fab099f6806adf5ceaf399b0cc415f6b9ede890f2379b\",\"license\":\"MIT\"},\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// End consumer library.\\nlibrary Client {\\n /// @dev RMN depends on this struct, if changing, please notify the RMN maintainers.\\n struct EVMTokenAmount {\\n address token; // token address on the local chain.\\n uint256 amount; // Amount of tokens.\\n }\\n\\n struct Any2EVMMessage {\\n bytes32 messageId; // MessageId corresponding to ccipSend on source.\\n uint64 sourceChainSelector; // Source chain selector.\\n bytes sender; // abi.decode(sender) if coming from an EVM chain.\\n bytes data; // payload sent in original message.\\n EVMTokenAmount[] destTokenAmounts; // Tokens and their amounts in their destination chain representation.\\n }\\n\\n // If extraArgs is empty bytes, the default is 200k gas limit.\\n struct EVM2AnyMessage {\\n bytes receiver; // abi.encode(receiver address) for dest EVM chains\\n bytes data; // Data payload\\n EVMTokenAmount[] tokenAmounts; // Token transfers\\n address feeToken; // Address of feeToken. address(0) means you will send msg.value.\\n bytes extraArgs; // Populate this with _argsToBytes(EVMExtraArgsV1)\\n }\\n\\n // bytes4(keccak256(\\\"CCIP EVMExtraArgsV1\\\"));\\n bytes4 public constant EVM_EXTRA_ARGS_V1_TAG = 0x97a657c9;\\n struct EVMExtraArgsV1 {\\n uint256 gasLimit;\\n }\\n\\n function _argsToBytes(EVMExtraArgsV1 memory extraArgs) internal pure returns (bytes memory bts) {\\n return abi.encodeWithSelector(EVM_EXTRA_ARGS_V1_TAG, extraArgs);\\n }\\n}\\n\",\"keccak256\":\"0x8af3ac1085c87342373772fb1a0107c7b90258e6bfed318ab2a601a14477e679\",\"license\":\"MIT\"},\"@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0xfe4e8bb4861bb3860ba890ab91a3b818ec66e5a8f544fb608cfcb73f433472cd\",\"license\":\"MIT\"},\"@chainlink/contracts/src/v0.8/shared/interfaces/LinkTokenInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface LinkTokenInterface {\\n function allowance(address owner, address spender) external view returns (uint256 remaining);\\n\\n function approve(address spender, uint256 value) external returns (bool success);\\n\\n function balanceOf(address owner) external view returns (uint256 balance);\\n\\n function decimals() external view returns (uint8 decimalPlaces);\\n\\n function decreaseApproval(address spender, uint256 addedValue) external returns (bool success);\\n\\n function increaseApproval(address spender, uint256 subtractedValue) external;\\n\\n function name() external view returns (string memory tokenName);\\n\\n function symbol() external view returns (string memory tokenSymbol);\\n\\n function totalSupply() external view returns (uint256 totalTokensIssued);\\n\\n function transfer(address to, uint256 value) external returns (bool success);\\n\\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool success);\\n\\n function transferFrom(address from, address to, uint256 value) external returns (bool success);\\n}\\n\",\"keccak256\":\"0xac02fbc0c7d194e525a71f524d1f7c472df73e19c2b527d7b529badaeaf0ec51\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {OwnableUpgradeable} from \\\"./OwnableUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is specified at deployment time in the constructor for `Ownable`. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable2Step\\n struct Ownable2StepStorage {\\n address _pendingOwner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable2Step\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant Ownable2StepStorageLocation = 0x237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00;\\n\\n function _getOwnable2StepStorage() private pure returns (Ownable2StepStorage storage $) {\\n assembly {\\n $.slot := Ownable2StepStorageLocation\\n }\\n }\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n function __Ownable2Step_init() internal onlyInitializing {\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n return $._pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n $._pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n delete $._pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n if (pendingOwner() != sender) {\\n revert OwnableUnauthorizedAccount(sender);\\n }\\n _transferOwnership(sender);\\n }\\n}\\n\",\"keccak256\":\"0xbca4a4f66d98028293dba695851d1b20d3e0ba2fff7453fb241f192fa3fc6b6f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\\\";\\nimport {Initializable} from \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3f13b947637c4969c0644cab4ef399cdc4b67f101463b8775c5a43b118558e53\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set 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(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\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\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"},\"src/TrojanHorse.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\npragma solidity >=0.8.25;\\n\\nimport { UUPSUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport { Ownable2StepUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\nimport { IRouterClient } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol\\\";\\nimport { Client } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\\\";\\nimport { LinkTokenInterface } from \\\"@chainlink/contracts/src/v0.8/shared/interfaces/LinkTokenInterface.sol\\\";\\nimport { AggregatorV3Interface } from \\\"@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\\\";\\n\\ncontract TrojanHorse is UUPSUpgradeable, Ownable2StepUpgradeable {\\n struct TrajonHorseStorage {\\n IRouterClient router;\\n AggregatorV3Interface aggregator;\\n uint64 destinationChainSelector;\\n address receiver;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"battleoflayers.storage.trajonhorse\\\")) - 1)) & ~ bytes32(uint256(0xff))\\n //\\n bytes32 private constant TrajanHorseStorageLocation =\\n 0xe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00;\\n\\n // Event emitted when a message is sent to another chain.\\n event HorseSent( // The unique ID of the CCIP message.\\n bytes32 indexed messageId, uint256 soldierAmount, uint256 fees);\\n\\n error NotEnoughBalance();\\n\\n function _getTrajanHorseStorage() internal pure returns (TrajonHorseStorage storage $) {\\n assembly {\\n $.slot := TrajanHorseStorageLocation\\n }\\n }\\n\\n function initialize(\\n address owner_,\\n address router_,\\n address aggregator_,\\n uint256 chainSelector_,\\n address receiver_\\n )\\n external\\n initializer\\n {\\n _transferOwnership(owner_);\\n\\n TrajonHorseStorage storage $ = _getTrajanHorseStorage();\\n $.router = IRouterClient(router_);\\n $.aggregator = AggregatorV3Interface(aggregator_);\\n $.destinationChainSelector = uint64(chainSelector_);\\n $.receiver = receiver_;\\n }\\n\\n // only owner can upgrade\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner { }\\n\\n // function\\n\\n /// @notice Sends data to receiver on the destination chain.\\n /// @return messageId The ID of the message that was sent.\\n function sendHorse(uint256 fundForSoldiers) external payable onlyOwner returns (bytes32 messageId) {\\n (, int256 answer,,,) = _getTrajanHorseStorage().aggregator.latestRoundData();\\n uint8 decimal = _getTrajanHorseStorage().aggregator.decimals();\\n uint256 soldierAmount = fundForSoldiers * uint256(answer) / (10 ** decimal * 1 ether);\\n\\n address receiver = _getTrajanHorseStorage().receiver;\\n uint64 destinationChainSelector = _getTrajanHorseStorage().destinationChainSelector;\\n\\n // encode data\\n bytes memory data = abi.encode(block.chainid, soldierAmount);\\n\\n // Create an EVM2AnyMessage struct in memory with necessary information for sending a cross-chain message\\n Client.EVM2AnyMessage memory evm2AnyMessage = Client.EVM2AnyMessage({\\n receiver: abi.encode(receiver), // ABI-encoded\\n data: data, // ABI-encoded string\\n tokenAmounts: new Client.EVMTokenAmount[](0), // Empty array indicating no tokens are being sent\\n extraArgs: Client._argsToBytes(\\n // Additional arguments, setting gas limit\\n Client.EVMExtraArgsV1({ gasLimit: 200_000 })\\n ),\\n // Set the feeToken address, use native token\\n feeToken: address(0)\\n });\\n\\n // Get the fee required to send the message\\n uint256 fees = _getTrajanHorseStorage().router.getFee(destinationChainSelector, evm2AnyMessage);\\n\\n if (msg.value - fundForSoldiers < fees) {\\n revert NotEnoughBalance();\\n }\\n\\n // Send the message through the router and store the returned message ID\\n messageId = _getTrajanHorseStorage().router.ccipSend{ value: fees }(destinationChainSelector, evm2AnyMessage);\\n\\n // Emit an event with message details\\n emit HorseSent(messageId, soldierAmount, fees);\\n\\n // Return the message ID\\n return messageId;\\n }\\n\\n function getFee(uint256 fundForSoldiers) public view returns (uint256 fees, uint256 soldierAmount) {\\n (, int256 answer,,,) = _getTrajanHorseStorage().aggregator.latestRoundData();\\n uint8 decimal = _getTrajanHorseStorage().aggregator.decimals();\\n soldierAmount = fundForSoldiers * uint256(answer) / (10 ** decimal * 1 ether);\\n\\n address receiver = _getTrajanHorseStorage().receiver;\\n uint64 destinationChainSelector = _getTrajanHorseStorage().destinationChainSelector;\\n\\n // encode data\\n bytes memory data = abi.encode(block.chainid, soldierAmount);\\n\\n // Create an EVM2AnyMessage struct in memory with necessary information for sending a cross-chain message\\n Client.EVM2AnyMessage memory evm2AnyMessage = Client.EVM2AnyMessage({\\n receiver: abi.encode(receiver), // ABI-encoded\\n data: data, // ABI-encoded string\\n tokenAmounts: new Client.EVMTokenAmount[](0), // Empty array indicating no tokens are being sent\\n extraArgs: Client._argsToBytes(\\n // Additional arguments, setting gas limit\\n Client.EVMExtraArgsV1({ gasLimit: 200_000 })\\n ),\\n // Set the feeToken address, use native token\\n feeToken: address(0)\\n });\\n\\n // Get the fee required to send the message\\n fees = _getTrajanHorseStorage().router.getFee(destinationChainSelector, evm2AnyMessage);\\n }\\n}\\n\",\"keccak256\":\"0x5b64ab80ba7dfcf5e7ecf203ca6c746d62740c92b7190db91a93f4587f7b6155\",\"license\":\"UNLICENSED\"}},\"version\":1}",
+ "bytecode": "0x60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff16815250348015604257600080fd5b5060805161244961006c60003960008181610f6d01528181610fc2015261117d01526124496000f3fe60806040526004361061009c5760003560e01c806379ba50971161006457806379ba5097146101585780638da5cb5b1461016f578063ad3cb1cc1461019a578063e30c3978146101c5578063f2fde38b146101f0578063fcee45f4146102195761009c565b80634f1ef286146100a157806352d1902d146100bd578063530b97a4146100e8578063715018a61461011157806374af8ff514610128575b600080fd5b6100bb60048036038101906100b691906119e5565b610257565b005b3480156100c957600080fd5b506100d2610276565b6040516100df9190611a5a565b60405180910390f35b3480156100f457600080fd5b5061010f600480360381019061010a9190611aab565b6102a9565b005b34801561011d57600080fd5b5061012661053d565b005b610142600480360381019061013d9190611b26565b610551565b60405161014f9190611a5a565b60405180910390f35b34801561016457600080fd5b5061016d610a00565b005b34801561017b57600080fd5b50610184610a8f565b6040516101919190611b62565b60405180910390f35b3480156101a657600080fd5b506101af610ac7565b6040516101bc9190611bfc565b60405180910390f35b3480156101d157600080fd5b506101da610b00565b6040516101e79190611b62565b60405180910390f35b3480156101fc57600080fd5b5061021760048036038101906102129190611c1e565b610b38565b005b34801561022557600080fd5b50610240600480360381019061023b9190611b26565b610bf4565b60405161024e929190611c5a565b60405180910390f35b61025f610f6b565b61026882611051565b610272828261105c565b5050565b600061028061117b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b60006102b3611202565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156103015750825b9050600060018367ffffffffffffffff16148015610336575060003073ffffffffffffffffffffffffffffffffffffffff163b145b905081158015610344575080155b1561037b576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156103cb5760018560000160086101000a81548160ff0219169083151502179055505b6103d48a61122a565b60006103de61126a565b9050898160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550888160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550878160010160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550868160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505083156105315760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516105289190611cdc565b60405180910390a15b50505050505050505050565b610545611292565b61054f600061122a565b565b600061055b611292565b600061056561126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156105d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f79190611d84565b505050915050600061060761126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610675573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106999190611e38565b90506000670de0b6b3a764000082600a6106b39190611fc7565b6106bd9190612012565b83866106c99190612012565b6106d39190612083565b905060006106df61126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600061070f61126a565b60010160149054906101000a900467ffffffffffffffff1690506000468460405160200161073e929190611c5a565b604051602081830303815290604052905060006040518060a001604052808560405160200161076d9190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff8111156107a2576107a16118ba565b5b6040519080825280602002602001820160405280156107db57816020015b6107c86117fd565b8152602001906001900390816107c05790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610818604051806020016040528062030d40815250611319565b8152509050600061082761126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded85846040518363ffffffff1660e01b815260040161088592919061229f565b602060405180830381865afa1580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c691906122cf565b9050808a346108d591906122fc565b101561090d576040517fad3a8b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61091561126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166396f4e9f98286856040518463ffffffff1660e01b815260040161097492919061229f565b60206040518083038185885af1158015610992573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906109b7919061235c565b9850887faf4d8a84b234410af70315b833c476a761b33559f391cf26d8f3bf7baa5f12ee87836040516109eb929190611c5a565b60405180910390a25050505050505050919050565b6000610a0a611398565b90508073ffffffffffffffffffffffffffffffffffffffff16610a2b610b00565b73ffffffffffffffffffffffffffffffffffffffff1614610a8357806040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a7a9190611b62565b60405180910390fd5b610a8c8161122a565b50565b600080610a9a6113a0565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b600080610b0b6113c8565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b610b40611292565b6000610b4a6113c8565b9050818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff16610bae610a8f565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b6000806000610c0161126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c939190611d84565b5050509150506000610ca361126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d359190611e38565b9050670de0b6b3a764000081600a610d4d9190611fc7565b610d579190612012565b8286610d639190612012565b610d6d9190612083565b92506000610d7961126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000610da961126a565b60010160149054906101000a900467ffffffffffffffff16905060004686604051602001610dd8929190611c5a565b604051602081830303815290604052905060006040518060a0016040528085604051602001610e079190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff811115610e3c57610e3b6118ba565b5b604051908082528060200260200182016040528015610e7557816020015b610e626117fd565b815260200190600190039081610e5a5790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610eb2604051806020016040528062030d40815250611319565b8152509050610ebf61126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded84836040518363ffffffff1660e01b8152600401610f1d92919061229f565b602060405180830381865afa158015610f3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5e91906122cf565b9750505050505050915091565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148061101857507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610fff6113f0565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561104f576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b611059611292565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156110c457506040513d601f19601f820116820180604052508101906110c1919061235c565b60015b61110557816040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016110fc9190611b62565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b811461116c57806040517faa1d49a40000000000000000000000000000000000000000000000000000000081526004016111639190611a5a565b60405180910390fd5b6111768383611447565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614611200576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b60006112346113c8565b90508060000160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055611266826114ba565b5050565b60007fe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00905090565b61129a611398565b73ffffffffffffffffffffffffffffffffffffffff166112b8610a8f565b73ffffffffffffffffffffffffffffffffffffffff1614611317576112db611398565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161130e9190611b62565b60405180910390fd5b565b60606397a657c960e01b8260405160240161133491906123a5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b600033905090565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b60007f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00905090565b600061141e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114508261159b565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a26000815111156114ad576114a78282611668565b506114b6565b6114b56116ec565b5b5050565b60006114c46113a0565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036115f757806040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016115ee9190611b62565b60405180910390fd5b806116247f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff168460405161169291906123fc565b600060405180830381855af49150503d80600081146116cd576040519150601f19603f3d011682016040523d82523d6000602084013e6116d2565b606091505b50915091506116e2858383611729565b9250505092915050565b6000341115611727576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608261173e57611739826117b8565b6117b0565b60008251148015611766575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156117a857836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161179f9190611b62565b60405180910390fd5b8190506117b1565b5b9392505050565b6000815111156117cb5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061186c82611841565b9050919050565b61187c81611861565b811461188757600080fd5b50565b60008135905061189981611873565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6118f2826118a9565b810181811067ffffffffffffffff82111715611911576119106118ba565b5b80604052505050565b600061192461182d565b905061193082826118e9565b919050565b600067ffffffffffffffff8211156119505761194f6118ba565b5b611959826118a9565b9050602081019050919050565b82818337600083830152505050565b600061198861198384611935565b61191a565b9050828152602081018484840111156119a4576119a36118a4565b5b6119af848285611966565b509392505050565b600082601f8301126119cc576119cb61189f565b5b81356119dc848260208601611975565b91505092915050565b600080604083850312156119fc576119fb611837565b5b6000611a0a8582860161188a565b925050602083013567ffffffffffffffff811115611a2b57611a2a61183c565b5b611a37858286016119b7565b9150509250929050565b6000819050919050565b611a5481611a41565b82525050565b6000602082019050611a6f6000830184611a4b565b92915050565b6000819050919050565b611a8881611a75565b8114611a9357600080fd5b50565b600081359050611aa581611a7f565b92915050565b600080600080600060a08688031215611ac757611ac6611837565b5b6000611ad58882890161188a565b9550506020611ae68882890161188a565b9450506040611af78882890161188a565b9350506060611b0888828901611a96565b9250506080611b198882890161188a565b9150509295509295909350565b600060208284031215611b3c57611b3b611837565b5b6000611b4a84828501611a96565b91505092915050565b611b5c81611861565b82525050565b6000602082019050611b776000830184611b53565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611bb7578082015181840152602081019050611b9c565b60008484015250505050565b6000611bce82611b7d565b611bd88185611b88565b9350611be8818560208601611b99565b611bf1816118a9565b840191505092915050565b60006020820190508181036000830152611c168184611bc3565b905092915050565b600060208284031215611c3457611c33611837565b5b6000611c428482850161188a565b91505092915050565b611c5481611a75565b82525050565b6000604082019050611c6f6000830185611c4b565b611c7c6020830184611c4b565b9392505050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b6000611cc6611cc1611cbc84611c83565b611ca1565b611c8d565b9050919050565b611cd681611cab565b82525050565b6000602082019050611cf16000830184611ccd565b92915050565b600069ffffffffffffffffffff82169050919050565b611d1681611cf7565b8114611d2157600080fd5b50565b600081519050611d3381611d0d565b92915050565b6000819050919050565b611d4c81611d39565b8114611d5757600080fd5b50565b600081519050611d6981611d43565b92915050565b600081519050611d7e81611a7f565b92915050565b600080600080600060a08688031215611da057611d9f611837565b5b6000611dae88828901611d24565b9550506020611dbf88828901611d5a565b9450506040611dd088828901611d6f565b9350506060611de188828901611d6f565b9250506080611df288828901611d24565b9150509295509295909350565b600060ff82169050919050565b611e1581611dff565b8114611e2057600080fd5b50565b600081519050611e3281611e0c565b92915050565b600060208284031215611e4e57611e4d611837565b5b6000611e5c84828501611e23565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611eeb57808604811115611ec757611ec6611e65565b5b6001851615611ed65780820291505b8081029050611ee485611e94565b9450611eab565b94509492505050565b600082611f045760019050611fc0565b81611f125760009050611fc0565b8160018114611f285760028114611f3257611f61565b6001915050611fc0565b60ff841115611f4457611f43611e65565b5b8360020a915084821115611f5b57611f5a611e65565b5b50611fc0565b5060208310610133831016604e8410600b8410161715611f965782820a905083811115611f9157611f90611e65565b5b611fc0565b611fa38484846001611ea1565b92509050818404811115611fba57611fb9611e65565b5b81810290505b9392505050565b6000611fd282611a75565b9150611fdd83611dff565b925061200a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611ef4565b905092915050565b600061201d82611a75565b915061202883611a75565b925082820261203681611a75565b9150828204841483151761204d5761204c611e65565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061208e82611a75565b915061209983611a75565b9250826120a9576120a8612054565b5b828204905092915050565b6120bd81611c8d565b82525050565b600081519050919050565b600082825260208201905092915050565b60006120ea826120c3565b6120f481856120ce565b9350612104818560208601611b99565b61210d816118a9565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61214d81611861565b82525050565b61215c81611a75565b82525050565b6040820160008201516121786000850182612144565b50602082015161218b6020850182612153565b50505050565b600061219d8383612162565b60408301905092915050565b6000602082019050919050565b60006121c182612118565b6121cb8185612123565b93506121d683612134565b8060005b838110156122075781516121ee8882612191565b97506121f9836121a9565b9250506001810190506121da565b5085935050505092915050565b600060a083016000830151848203600086015261223182826120df565b9150506020830151848203602086015261224b82826120df565b9150506040830151848203604086015261226582826121b6565b915050606083015161227a6060860182612144565b506080830151848203608086015261229282826120df565b9150508091505092915050565b60006040820190506122b460008301856120b4565b81810360208301526122c68184612214565b90509392505050565b6000602082840312156122e5576122e4611837565b5b60006122f384828501611d6f565b91505092915050565b600061230782611a75565b915061231283611a75565b925082820390508181111561232a57612329611e65565b5b92915050565b61233981611a41565b811461234457600080fd5b50565b60008151905061235681612330565b92915050565b60006020828403121561237257612371611837565b5b600061238084828501612347565b91505092915050565b60208201600082015161239f6000850182612153565b50505050565b60006020820190506123ba6000830184612389565b92915050565b600081905092915050565b60006123d6826120c3565b6123e081856123c0565b93506123f0818560208601611b99565b80840191505092915050565b600061240882846123cb565b91508190509291505056fea264697066735822122062284939d8f0beb87eac9511f3cc420ed85a24701ee09e6f5cf06bc1c840945964736f6c63430008190033",
+ "deployedBytecode": "0x60806040526004361061009c5760003560e01c806379ba50971161006457806379ba5097146101585780638da5cb5b1461016f578063ad3cb1cc1461019a578063e30c3978146101c5578063f2fde38b146101f0578063fcee45f4146102195761009c565b80634f1ef286146100a157806352d1902d146100bd578063530b97a4146100e8578063715018a61461011157806374af8ff514610128575b600080fd5b6100bb60048036038101906100b691906119e5565b610257565b005b3480156100c957600080fd5b506100d2610276565b6040516100df9190611a5a565b60405180910390f35b3480156100f457600080fd5b5061010f600480360381019061010a9190611aab565b6102a9565b005b34801561011d57600080fd5b5061012661053d565b005b610142600480360381019061013d9190611b26565b610551565b60405161014f9190611a5a565b60405180910390f35b34801561016457600080fd5b5061016d610a00565b005b34801561017b57600080fd5b50610184610a8f565b6040516101919190611b62565b60405180910390f35b3480156101a657600080fd5b506101af610ac7565b6040516101bc9190611bfc565b60405180910390f35b3480156101d157600080fd5b506101da610b00565b6040516101e79190611b62565b60405180910390f35b3480156101fc57600080fd5b5061021760048036038101906102129190611c1e565b610b38565b005b34801561022557600080fd5b50610240600480360381019061023b9190611b26565b610bf4565b60405161024e929190611c5a565b60405180910390f35b61025f610f6b565b61026882611051565b610272828261105c565b5050565b600061028061117b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b60006102b3611202565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156103015750825b9050600060018367ffffffffffffffff16148015610336575060003073ffffffffffffffffffffffffffffffffffffffff163b145b905081158015610344575080155b1561037b576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156103cb5760018560000160086101000a81548160ff0219169083151502179055505b6103d48a61122a565b60006103de61126a565b9050898160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550888160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550878160010160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550868160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505083156105315760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516105289190611cdc565b60405180910390a15b50505050505050505050565b610545611292565b61054f600061122a565b565b600061055b611292565b600061056561126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156105d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f79190611d84565b505050915050600061060761126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610675573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106999190611e38565b90506000670de0b6b3a764000082600a6106b39190611fc7565b6106bd9190612012565b83866106c99190612012565b6106d39190612083565b905060006106df61126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600061070f61126a565b60010160149054906101000a900467ffffffffffffffff1690506000468460405160200161073e929190611c5a565b604051602081830303815290604052905060006040518060a001604052808560405160200161076d9190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff8111156107a2576107a16118ba565b5b6040519080825280602002602001820160405280156107db57816020015b6107c86117fd565b8152602001906001900390816107c05790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610818604051806020016040528062030d40815250611319565b8152509050600061082761126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded85846040518363ffffffff1660e01b815260040161088592919061229f565b602060405180830381865afa1580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c691906122cf565b9050808a346108d591906122fc565b101561090d576040517fad3a8b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61091561126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166396f4e9f98286856040518463ffffffff1660e01b815260040161097492919061229f565b60206040518083038185885af1158015610992573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906109b7919061235c565b9850887faf4d8a84b234410af70315b833c476a761b33559f391cf26d8f3bf7baa5f12ee87836040516109eb929190611c5a565b60405180910390a25050505050505050919050565b6000610a0a611398565b90508073ffffffffffffffffffffffffffffffffffffffff16610a2b610b00565b73ffffffffffffffffffffffffffffffffffffffff1614610a8357806040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a7a9190611b62565b60405180910390fd5b610a8c8161122a565b50565b600080610a9a6113a0565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b600080610b0b6113c8565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b610b40611292565b6000610b4a6113c8565b9050818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff16610bae610a8f565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b6000806000610c0161126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c939190611d84565b5050509150506000610ca361126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d359190611e38565b9050670de0b6b3a764000081600a610d4d9190611fc7565b610d579190612012565b8286610d639190612012565b610d6d9190612083565b92506000610d7961126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000610da961126a565b60010160149054906101000a900467ffffffffffffffff16905060004686604051602001610dd8929190611c5a565b604051602081830303815290604052905060006040518060a0016040528085604051602001610e079190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff811115610e3c57610e3b6118ba565b5b604051908082528060200260200182016040528015610e7557816020015b610e626117fd565b815260200190600190039081610e5a5790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610eb2604051806020016040528062030d40815250611319565b8152509050610ebf61126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded84836040518363ffffffff1660e01b8152600401610f1d92919061229f565b602060405180830381865afa158015610f3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5e91906122cf565b9750505050505050915091565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148061101857507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610fff6113f0565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561104f576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b611059611292565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156110c457506040513d601f19601f820116820180604052508101906110c1919061235c565b60015b61110557816040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016110fc9190611b62565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b811461116c57806040517faa1d49a40000000000000000000000000000000000000000000000000000000081526004016111639190611a5a565b60405180910390fd5b6111768383611447565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614611200576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b60006112346113c8565b90508060000160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055611266826114ba565b5050565b60007fe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00905090565b61129a611398565b73ffffffffffffffffffffffffffffffffffffffff166112b8610a8f565b73ffffffffffffffffffffffffffffffffffffffff1614611317576112db611398565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161130e9190611b62565b60405180910390fd5b565b60606397a657c960e01b8260405160240161133491906123a5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b600033905090565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b60007f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00905090565b600061141e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114508261159b565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a26000815111156114ad576114a78282611668565b506114b6565b6114b56116ec565b5b5050565b60006114c46113a0565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036115f757806040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016115ee9190611b62565b60405180910390fd5b806116247f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff168460405161169291906123fc565b600060405180830381855af49150503d80600081146116cd576040519150601f19603f3d011682016040523d82523d6000602084013e6116d2565b606091505b50915091506116e2858383611729565b9250505092915050565b6000341115611727576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608261173e57611739826117b8565b6117b0565b60008251148015611766575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156117a857836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161179f9190611b62565b60405180910390fd5b8190506117b1565b5b9392505050565b6000815111156117cb5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061186c82611841565b9050919050565b61187c81611861565b811461188757600080fd5b50565b60008135905061189981611873565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6118f2826118a9565b810181811067ffffffffffffffff82111715611911576119106118ba565b5b80604052505050565b600061192461182d565b905061193082826118e9565b919050565b600067ffffffffffffffff8211156119505761194f6118ba565b5b611959826118a9565b9050602081019050919050565b82818337600083830152505050565b600061198861198384611935565b61191a565b9050828152602081018484840111156119a4576119a36118a4565b5b6119af848285611966565b509392505050565b600082601f8301126119cc576119cb61189f565b5b81356119dc848260208601611975565b91505092915050565b600080604083850312156119fc576119fb611837565b5b6000611a0a8582860161188a565b925050602083013567ffffffffffffffff811115611a2b57611a2a61183c565b5b611a37858286016119b7565b9150509250929050565b6000819050919050565b611a5481611a41565b82525050565b6000602082019050611a6f6000830184611a4b565b92915050565b6000819050919050565b611a8881611a75565b8114611a9357600080fd5b50565b600081359050611aa581611a7f565b92915050565b600080600080600060a08688031215611ac757611ac6611837565b5b6000611ad58882890161188a565b9550506020611ae68882890161188a565b9450506040611af78882890161188a565b9350506060611b0888828901611a96565b9250506080611b198882890161188a565b9150509295509295909350565b600060208284031215611b3c57611b3b611837565b5b6000611b4a84828501611a96565b91505092915050565b611b5c81611861565b82525050565b6000602082019050611b776000830184611b53565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611bb7578082015181840152602081019050611b9c565b60008484015250505050565b6000611bce82611b7d565b611bd88185611b88565b9350611be8818560208601611b99565b611bf1816118a9565b840191505092915050565b60006020820190508181036000830152611c168184611bc3565b905092915050565b600060208284031215611c3457611c33611837565b5b6000611c428482850161188a565b91505092915050565b611c5481611a75565b82525050565b6000604082019050611c6f6000830185611c4b565b611c7c6020830184611c4b565b9392505050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b6000611cc6611cc1611cbc84611c83565b611ca1565b611c8d565b9050919050565b611cd681611cab565b82525050565b6000602082019050611cf16000830184611ccd565b92915050565b600069ffffffffffffffffffff82169050919050565b611d1681611cf7565b8114611d2157600080fd5b50565b600081519050611d3381611d0d565b92915050565b6000819050919050565b611d4c81611d39565b8114611d5757600080fd5b50565b600081519050611d6981611d43565b92915050565b600081519050611d7e81611a7f565b92915050565b600080600080600060a08688031215611da057611d9f611837565b5b6000611dae88828901611d24565b9550506020611dbf88828901611d5a565b9450506040611dd088828901611d6f565b9350506060611de188828901611d6f565b9250506080611df288828901611d24565b9150509295509295909350565b600060ff82169050919050565b611e1581611dff565b8114611e2057600080fd5b50565b600081519050611e3281611e0c565b92915050565b600060208284031215611e4e57611e4d611837565b5b6000611e5c84828501611e23565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611eeb57808604811115611ec757611ec6611e65565b5b6001851615611ed65780820291505b8081029050611ee485611e94565b9450611eab565b94509492505050565b600082611f045760019050611fc0565b81611f125760009050611fc0565b8160018114611f285760028114611f3257611f61565b6001915050611fc0565b60ff841115611f4457611f43611e65565b5b8360020a915084821115611f5b57611f5a611e65565b5b50611fc0565b5060208310610133831016604e8410600b8410161715611f965782820a905083811115611f9157611f90611e65565b5b611fc0565b611fa38484846001611ea1565b92509050818404811115611fba57611fb9611e65565b5b81810290505b9392505050565b6000611fd282611a75565b9150611fdd83611dff565b925061200a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611ef4565b905092915050565b600061201d82611a75565b915061202883611a75565b925082820261203681611a75565b9150828204841483151761204d5761204c611e65565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061208e82611a75565b915061209983611a75565b9250826120a9576120a8612054565b5b828204905092915050565b6120bd81611c8d565b82525050565b600081519050919050565b600082825260208201905092915050565b60006120ea826120c3565b6120f481856120ce565b9350612104818560208601611b99565b61210d816118a9565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61214d81611861565b82525050565b61215c81611a75565b82525050565b6040820160008201516121786000850182612144565b50602082015161218b6020850182612153565b50505050565b600061219d8383612162565b60408301905092915050565b6000602082019050919050565b60006121c182612118565b6121cb8185612123565b93506121d683612134565b8060005b838110156122075781516121ee8882612191565b97506121f9836121a9565b9250506001810190506121da565b5085935050505092915050565b600060a083016000830151848203600086015261223182826120df565b9150506020830151848203602086015261224b82826120df565b9150506040830151848203604086015261226582826121b6565b915050606083015161227a6060860182612144565b506080830151848203608086015261229282826120df565b9150508091505092915050565b60006040820190506122b460008301856120b4565b81810360208301526122c68184612214565b90509392505050565b6000602082840312156122e5576122e4611837565b5b60006122f384828501611d6f565b91505092915050565b600061230782611a75565b915061231283611a75565b925082820390508181111561232a57612329611e65565b5b92915050565b61233981611a41565b811461234457600080fd5b50565b60008151905061235681612330565b92915050565b60006020828403121561237257612371611837565b5b600061238084828501612347565b91505092915050565b60208201600082015161239f6000850182612153565b50505050565b60006020820190506123ba6000830184612389565b92915050565b600081905092915050565b60006123d6826120c3565b6123e081856123c0565b93506123f0818560208601611b99565b80840191505092915050565b600061240882846123cb565b91508190509291505056fea264697066735822122062284939d8f0beb87eac9511f3cc420ed85a24701ee09e6f5cf06bc1c840945964736f6c63430008190033",
+ "devdoc": {
+ "errors": {
+ "AddressEmptyCode(address)": [
+ {
+ "details": "There's no code at `target` (it is not a contract)."
+ }
+ ],
+ "ERC1967InvalidImplementation(address)": [
+ {
+ "details": "The `implementation` of the proxy is invalid."
+ }
+ ],
+ "ERC1967NonPayable()": [
+ {
+ "details": "An upgrade function sees `msg.value > 0` that may be lost."
+ }
+ ],
+ "FailedInnerCall()": [
+ {
+ "details": "A call to an address target failed. The target may have reverted."
+ }
+ ],
+ "InvalidInitialization()": [
+ {
+ "details": "The contract is already initialized."
+ }
+ ],
+ "NotInitializing()": [
+ {
+ "details": "The contract is not initializing."
+ }
+ ],
+ "OwnableInvalidOwner(address)": [
+ {
+ "details": "The owner is not a valid owner account. (eg. `address(0)`)"
+ }
+ ],
+ "OwnableUnauthorizedAccount(address)": [
+ {
+ "details": "The caller account is not authorized to perform an operation."
+ }
+ ],
+ "UUPSUnauthorizedCallContext()": [
+ {
+ "details": "The call is from an unauthorized context."
+ }
+ ],
+ "UUPSUnsupportedProxiableUUID(bytes32)": [
+ {
+ "details": "The storage `slot` is unsupported as a UUID."
+ }
+ ]
+ },
+ "events": {
+ "Initialized(uint64)": {
+ "details": "Triggered when the contract has been initialized or reinitialized."
+ },
+ "Upgraded(address)": {
+ "details": "Emitted when the implementation is upgraded."
+ }
+ },
+ "kind": "dev",
+ "methods": {
+ "acceptOwnership()": {
+ "details": "The new owner accepts the ownership transfer."
+ },
+ "owner()": {
+ "details": "Returns the address of the current owner."
+ },
+ "pendingOwner()": {
+ "details": "Returns the address of the pending owner."
+ },
+ "proxiableUUID()": {
+ "details": "Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier."
+ },
+ "renounceOwnership()": {
+ "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."
+ },
+ "sendHorse(uint256)": {
+ "returns": {
+ "messageId": "The ID of the message that was sent."
+ }
+ },
+ "transferOwnership(address)": {
+ "details": "Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner."
+ },
+ "upgradeToAndCall(address,bytes)": {
+ "custom:oz-upgrades-unsafe-allow-reachable": "delegatecall",
+ "details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."
+ }
+ },
+ "version": 1
+ },
+ "userdoc": {
+ "kind": "user",
+ "methods": {
+ "sendHorse(uint256)": {
+ "notice": "Sends data to receiver on the destination chain."
+ }
+ },
+ "version": 1
+ },
+ "storageLayout": {
+ "storage": [],
+ "types": null
+ }
+}
\ No newline at end of file
diff --git a/packages/contracts/deployments/bnb_test/TrojanHorse_Proxy.json b/packages/contracts/deployments/bnb_test/TrojanHorse_Proxy.json
new file mode 100644
index 0000000..a354510
--- /dev/null
+++ b/packages/contracts/deployments/bnb_test/TrojanHorse_Proxy.json
@@ -0,0 +1,137 @@
+{
+ "address": "0x493A69ec1de995B5b0fB968Bc67022D1C54E490e",
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "_logic",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "_data",
+ "type": "bytes"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "previousAdmin",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "newAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "AdminChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "beacon",
+ "type": "address"
+ }
+ ],
+ "name": "BeaconUpgraded",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "Upgraded",
+ "type": "event"
+ },
+ {
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "stateMutability": "payable",
+ "type": "receive"
+ }
+ ],
+ "transactionHash": "0x363396cbefe91b1f2dd8fd9b13bde6023510c3ab4e2e37f102daa89ee8483cc6",
+ "receipt": {
+ "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
+ "from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "contractAddress": null,
+ "transactionIndex": 1,
+ "gasUsed": "375147",
+ "logsBloom": "0x00000000000000000000000000002000400000000000000000800000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000002000001000000080000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000800000000000000000000000080000000000000000000000000000000000100000000000001000000000000000000000000000000000000000020000000000000000010000000000000000004000400020000000020000000000000000000000000000000800000000000000000000000000000000000",
+ "blockHash": "0x1e782b9299451a4f4ead6ca76b42a275385b8d2b4fe0ad9b3097d76ad086ed7e",
+ "transactionHash": "0x363396cbefe91b1f2dd8fd9b13bde6023510c3ab4e2e37f102daa89ee8483cc6",
+ "logs": [
+ {
+ "transactionIndex": 1,
+ "blockNumber": 39444384,
+ "transactionHash": "0x363396cbefe91b1f2dd8fd9b13bde6023510c3ab4e2e37f102daa89ee8483cc6",
+ "address": "0x493A69ec1de995B5b0fB968Bc67022D1C54E490e",
+ "topics": [
+ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
+ "0x000000000000000000000000b0d02c3025068d889e3a6d77ed48a9f7062be153"
+ ],
+ "data": "0x",
+ "logIndex": 1,
+ "blockHash": "0x1e782b9299451a4f4ead6ca76b42a275385b8d2b4fe0ad9b3097d76ad086ed7e"
+ },
+ {
+ "transactionIndex": 1,
+ "blockNumber": 39444384,
+ "transactionHash": "0x363396cbefe91b1f2dd8fd9b13bde6023510c3ab4e2e37f102daa89ee8483cc6",
+ "address": "0x493A69ec1de995B5b0fB968Bc67022D1C54E490e",
+ "topics": [
+ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "0x000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560"
+ ],
+ "data": "0x",
+ "logIndex": 2,
+ "blockHash": "0x1e782b9299451a4f4ead6ca76b42a275385b8d2b4fe0ad9b3097d76ad086ed7e"
+ },
+ {
+ "transactionIndex": 1,
+ "blockNumber": 39444384,
+ "transactionHash": "0x363396cbefe91b1f2dd8fd9b13bde6023510c3ab4e2e37f102daa89ee8483cc6",
+ "address": "0x493A69ec1de995B5b0fB968Bc67022D1C54E490e",
+ "topics": [
+ "0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"
+ ],
+ "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
+ "logIndex": 3,
+ "blockHash": "0x1e782b9299451a4f4ead6ca76b42a275385b8d2b4fe0ad9b3097d76ad086ed7e"
+ }
+ ],
+ "blockNumber": 39444384,
+ "cumulativeGasUsed": "436647",
+ "status": 1,
+ "byzantium": true
+ },
+ "args": [
+ "0xB0D02c3025068D889E3a6d77ed48a9F7062bE153",
+ "0x530b97a4000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560000000000000000000000000e1053ae1857476f36a3c62580ff9b016e8ee8f6f0000000000000000000000002514895c72f50d8bd4b4f9b1110f0d6bd2c97526000000000000000000000000000000000000000000000000de41ba4fc9d91ad900000000000000000000000010d5617ef73e62545f45017a0f85847c081b9fce"
+ ],
+ "numDeployments": 1,
+ "bytecode": "0x60806040526040516107353803806107358339810160408190526100229161031e565b61002e82826000610035565b505061043b565b61003e8361006b565b60008251118061004b5750805b156100665761006483836100ab60201b6100291760201c565b505b505050565b610074816100d7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100d0838360405180606001604052806027815260200161070e602791396101a9565b9392505050565b6100ea8161022260201b6100551760201c565b6101515760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61023160201b6100641760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060600080856001600160a01b0316856040516101c691906103ec565b600060405180830381855af49150503d8060008114610201576040519150601f19603f3d011682016040523d82523d6000602084013e610206565b606091505b50909250905061021886838387610234565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102a0578251610299576001600160a01b0385163b6102995760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610148565b50816102aa565b6102aa83836102b2565b949350505050565b8151156102c25781518083602001fd5b8060405162461bcd60e51b81526004016101489190610408565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561030d5781810151838201526020016102f5565b838111156100645750506000910152565b6000806040838503121561033157600080fd5b82516001600160a01b038116811461034857600080fd5b60208401519092506001600160401b038082111561036557600080fd5b818501915085601f83011261037957600080fd5b81518181111561038b5761038b6102dc565b604051601f8201601f19908116603f011681019083821181831017156103b3576103b36102dc565b816040528281528860208487010111156103cc57600080fd5b6103dd8360208301602088016102f2565b80955050505050509250929050565b600082516103fe8184602087016102f2565b9190910192915050565b60208152600082518060208401526104278160408501602087016102f2565b601f01601f19169190910160400192915050565b6102c48061044a6000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",
+ "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033"
+}
\ No newline at end of file
diff --git a/packages/contracts/deployments/fuji/.chainId b/packages/contracts/deployments/fuji/.chainId
new file mode 100644
index 0000000..a7350c7
--- /dev/null
+++ b/packages/contracts/deployments/fuji/.chainId
@@ -0,0 +1 @@
+43113
\ No newline at end of file
diff --git a/packages/contracts/deployments/fuji/TrojanHorse.json b/packages/contracts/deployments/fuji/TrojanHorse.json
new file mode 100644
index 0000000..71d525e
--- /dev/null
+++ b/packages/contracts/deployments/fuji/TrojanHorse.json
@@ -0,0 +1,482 @@
+{
+ "address": "0xD8224921832bc7Fb86225B5092D7156c05751ef8",
+ "abi": [
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "previousAdmin",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "newAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "AdminChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "beacon",
+ "type": "address"
+ }
+ ],
+ "name": "BeaconUpgraded",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "Upgraded",
+ "type": "event"
+ },
+ {
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "stateMutability": "payable",
+ "type": "receive"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "target",
+ "type": "address"
+ }
+ ],
+ "name": "AddressEmptyCode",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "ERC1967InvalidImplementation",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "ERC1967NonPayable",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "FailedInnerCall",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidInitialization",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotEnoughBalance",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotInitializing",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableInvalidOwner",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableUnauthorizedAccount",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "UUPSUnauthorizedCallContext",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "slot",
+ "type": "bytes32"
+ }
+ ],
+ "name": "UUPSUnsupportedProxiableUUID",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ }
+ ],
+ "name": "HorseSent",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint64",
+ "name": "version",
+ "type": "uint64"
+ }
+ ],
+ "name": "Initialized",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferStarted",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferred",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "UPGRADE_INTERFACE_VERSION",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "acceptOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "getFee",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "router_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "aggregator_",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "chainSelector_",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "receiver_",
+ "type": "address"
+ }
+ ],
+ "name": "initialize",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "owner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "pendingOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "proxiableUUID",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "renounceOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "sendHorse",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "transferOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newImplementation",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "upgradeToAndCall",
+ "outputs": [],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "_logic",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "_data",
+ "type": "bytes"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "constructor"
+ }
+ ],
+ "transactionHash": "0xc417809af09f36d6b30b3cd811f2666aa11df55517bb14d8ef606cf01e9b0640",
+ "receipt": {
+ "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
+ "from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "contractAddress": null,
+ "transactionIndex": 0,
+ "gasUsed": "375147",
+ "logsBloom": "0x00000000000000000000000000002000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000200000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000800000000000000000000000080000000000000000000000008000000000100000000000001000000000000000000000000000000000000000020000000000000000000000000000000000004000400020000000020000000000000000000000200000000800000000000000000000000000000000000",
+ "blockHash": "0xd9c6aec778f357d3e47142301c415ff3539b281144d514dafd2888c38f2760e2",
+ "transactionHash": "0xc417809af09f36d6b30b3cd811f2666aa11df55517bb14d8ef606cf01e9b0640",
+ "logs": [
+ {
+ "transactionIndex": 0,
+ "blockNumber": 31829913,
+ "transactionHash": "0xc417809af09f36d6b30b3cd811f2666aa11df55517bb14d8ef606cf01e9b0640",
+ "address": "0xD8224921832bc7Fb86225B5092D7156c05751ef8",
+ "topics": [
+ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
+ "0x000000000000000000000000b0d02c3025068d889e3a6d77ed48a9f7062be153"
+ ],
+ "data": "0x",
+ "logIndex": 0,
+ "blockHash": "0xd9c6aec778f357d3e47142301c415ff3539b281144d514dafd2888c38f2760e2"
+ },
+ {
+ "transactionIndex": 0,
+ "blockNumber": 31829913,
+ "transactionHash": "0xc417809af09f36d6b30b3cd811f2666aa11df55517bb14d8ef606cf01e9b0640",
+ "address": "0xD8224921832bc7Fb86225B5092D7156c05751ef8",
+ "topics": [
+ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "0x000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560"
+ ],
+ "data": "0x",
+ "logIndex": 1,
+ "blockHash": "0xd9c6aec778f357d3e47142301c415ff3539b281144d514dafd2888c38f2760e2"
+ },
+ {
+ "transactionIndex": 0,
+ "blockNumber": 31829913,
+ "transactionHash": "0xc417809af09f36d6b30b3cd811f2666aa11df55517bb14d8ef606cf01e9b0640",
+ "address": "0xD8224921832bc7Fb86225B5092D7156c05751ef8",
+ "topics": [
+ "0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"
+ ],
+ "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
+ "logIndex": 2,
+ "blockHash": "0xd9c6aec778f357d3e47142301c415ff3539b281144d514dafd2888c38f2760e2"
+ }
+ ],
+ "blockNumber": 31829913,
+ "cumulativeGasUsed": "375147",
+ "status": 1,
+ "byzantium": true
+ },
+ "args": [
+ "0xB0D02c3025068D889E3a6d77ed48a9F7062bE153",
+ "0x530b97a4000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560000000000000000000000000f694e193200268f9a4868e4aa017a0118c9a81770000000000000000000000005498bb86bc934c8d34fda08e81d444153d0d06ad000000000000000000000000000000000000000000000000de41ba4fc9d91ad900000000000000000000000010d5617ef73e62545f45017a0f85847c081b9fce"
+ ],
+ "numDeployments": 1,
+ "bytecode": "0x60806040526040516107353803806107358339810160408190526100229161031e565b61002e82826000610035565b505061043b565b61003e8361006b565b60008251118061004b5750805b156100665761006483836100ab60201b6100291760201c565b505b505050565b610074816100d7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100d0838360405180606001604052806027815260200161070e602791396101a9565b9392505050565b6100ea8161022260201b6100551760201c565b6101515760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61023160201b6100641760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060600080856001600160a01b0316856040516101c691906103ec565b600060405180830381855af49150503d8060008114610201576040519150601f19603f3d011682016040523d82523d6000602084013e610206565b606091505b50909250905061021886838387610234565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102a0578251610299576001600160a01b0385163b6102995760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610148565b50816102aa565b6102aa83836102b2565b949350505050565b8151156102c25781518083602001fd5b8060405162461bcd60e51b81526004016101489190610408565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561030d5781810151838201526020016102f5565b838111156100645750506000910152565b6000806040838503121561033157600080fd5b82516001600160a01b038116811461034857600080fd5b60208401519092506001600160401b038082111561036557600080fd5b818501915085601f83011261037957600080fd5b81518181111561038b5761038b6102dc565b604051601f8201601f19908116603f011681019083821181831017156103b3576103b36102dc565b816040528281528860208487010111156103cc57600080fd5b6103dd8360208301602088016102f2565b80955050505050509250929050565b600082516103fe8184602087016102f2565b9190910192915050565b60208152600082518060208401526104278160408501602087016102f2565b601f01601f19169190910160400192915050565b6102c48061044a6000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",
+ "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033",
+ "execute": {
+ "methodName": "initialize",
+ "args": [
+ "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "0xF694E193200268f9a4868e4Aa017A0118C9a8177",
+ "0x5498BB86BC934c8D34FDA08E81D444153d0D06aD",
+ "16015286601757825753",
+ "0x10d5617ef73E62545F45017A0F85847c081b9fcE"
+ ]
+ },
+ "implementation": "0xB0D02c3025068D889E3a6d77ed48a9F7062bE153"
+}
\ No newline at end of file
diff --git a/packages/contracts/deployments/fuji/TrojanHorse_Implementation.json b/packages/contracts/deployments/fuji/TrojanHorse_Implementation.json
new file mode 100644
index 0000000..2060750
--- /dev/null
+++ b/packages/contracts/deployments/fuji/TrojanHorse_Implementation.json
@@ -0,0 +1,480 @@
+{
+ "address": "0xB0D02c3025068D889E3a6d77ed48a9F7062bE153",
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "target",
+ "type": "address"
+ }
+ ],
+ "name": "AddressEmptyCode",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "ERC1967InvalidImplementation",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "ERC1967NonPayable",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "FailedInnerCall",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidInitialization",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotEnoughBalance",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotInitializing",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableInvalidOwner",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableUnauthorizedAccount",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "UUPSUnauthorizedCallContext",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "slot",
+ "type": "bytes32"
+ }
+ ],
+ "name": "UUPSUnsupportedProxiableUUID",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ }
+ ],
+ "name": "HorseSent",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint64",
+ "name": "version",
+ "type": "uint64"
+ }
+ ],
+ "name": "Initialized",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferStarted",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferred",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "Upgraded",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "UPGRADE_INTERFACE_VERSION",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "acceptOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "getFee",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "router_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "aggregator_",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "chainSelector_",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "receiver_",
+ "type": "address"
+ }
+ ],
+ "name": "initialize",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "owner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "pendingOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "proxiableUUID",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "renounceOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "sendHorse",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "transferOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newImplementation",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "upgradeToAndCall",
+ "outputs": [],
+ "stateMutability": "payable",
+ "type": "function"
+ }
+ ],
+ "transactionHash": "0x5ce8a54ad5aa0ad14a4cf41591c813df4c0191ae766f1cb846d5426db40ec159",
+ "receipt": {
+ "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
+ "from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "contractAddress": null,
+ "transactionIndex": 0,
+ "gasUsed": "2057987",
+ "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "blockHash": "0x772359ca8a5582d1f1f8925f2d0b600a7dc9a0c846392f3dacf52c2226ad3a8e",
+ "transactionHash": "0x5ce8a54ad5aa0ad14a4cf41591c813df4c0191ae766f1cb846d5426db40ec159",
+ "logs": [],
+ "blockNumber": 31829907,
+ "cumulativeGasUsed": "2057987",
+ "status": 1,
+ "byzantium": true
+ },
+ "args": [],
+ "numDeployments": 1,
+ "solcInputHash": "072036421b95051681b93d5e2153ae28",
+ "metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ERC1967InvalidImplementation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC1967NonPayable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedInnerCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotEnoughBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UUPSUnauthorizedCallContext\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"slot\",\"type\":\"bytes32\"}],\"name\":\"UUPSUnsupportedProxiableUUID\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"soldierAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"}],\"name\":\"HorseSent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"UPGRADE_INTERFACE_VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fundForSoldiers\",\"type\":\"uint256\"}],\"name\":\"getFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"soldierAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"router_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"aggregator_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainSelector_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fundForSoldiers\",\"type\":\"uint256\"}],\"name\":\"sendHorse\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"AddressEmptyCode(address)\":[{\"details\":\"There's no code at `target` (it is not a contract).\"}],\"ERC1967InvalidImplementation(address)\":[{\"details\":\"The `implementation` of the proxy is invalid.\"}],\"ERC1967NonPayable()\":[{\"details\":\"An upgrade function sees `msg.value > 0` that may be lost.\"}],\"FailedInnerCall()\":[{\"details\":\"A call to an address target failed. The target may have reverted.\"}],\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"UUPSUnauthorizedCallContext()\":[{\"details\":\"The call is from an unauthorized context.\"}],\"UUPSUnsupportedProxiableUUID(bytes32)\":[{\"details\":\"The storage `slot` is unsupported as a UUID.\"}]},\"events\":{\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"acceptOwnership()\":{\"details\":\"The new owner accepts the ownership transfer.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pendingOwner()\":{\"details\":\"Returns the address of the pending owner.\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"sendHorse(uint256)\":{\"returns\":{\"messageId\":\"The ID of the message that was sent.\"}},\"transferOwnership(address)\":{\"details\":\"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"sendHorse(uint256)\":{\"notice\":\"Sends data to receiver on the destination chain.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/TrojanHorse.sol\":\"TrojanHorse\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {Client} from \\\"../libraries/Client.sol\\\";\\n\\ninterface IRouterClient {\\n error UnsupportedDestinationChain(uint64 destChainSelector);\\n error InsufficientFeeTokenAmount();\\n error InvalidMsgValue();\\n\\n /// @notice Checks if the given chain ID is supported for sending/receiving.\\n /// @param chainSelector The chain to check.\\n /// @return supported is true if it is supported, false if not.\\n function isChainSupported(uint64 chainSelector) external view returns (bool supported);\\n\\n /// @notice Gets a list of all supported tokens which can be sent or received\\n /// to/from a given chain id.\\n /// @param chainSelector The chainSelector.\\n /// @return tokens The addresses of all tokens that are supported.\\n function getSupportedTokens(uint64 chainSelector) external view returns (address[] memory tokens);\\n\\n /// @param destinationChainSelector The destination chainSelector\\n /// @param message The cross-chain CCIP message including data and/or tokens\\n /// @return fee returns execution fee for the message\\n /// delivery to destination chain, denominated in the feeToken specified in the message.\\n /// @dev Reverts with appropriate reason upon invalid message.\\n function getFee(\\n uint64 destinationChainSelector,\\n Client.EVM2AnyMessage memory message\\n ) external view returns (uint256 fee);\\n\\n /// @notice Request a message to be sent to the destination chain\\n /// @param destinationChainSelector The destination chain ID\\n /// @param message The cross-chain CCIP message including data and/or tokens\\n /// @return messageId The message ID\\n /// @dev Note if msg.value is larger than the required fee (from getFee) we accept\\n /// the overpayment with no refund.\\n /// @dev Reverts with appropriate reason upon invalid message.\\n function ccipSend(\\n uint64 destinationChainSelector,\\n Client.EVM2AnyMessage calldata message\\n ) external payable returns (bytes32);\\n}\\n\",\"keccak256\":\"0x7f2fdd93e516b7476c6fab099f6806adf5ceaf399b0cc415f6b9ede890f2379b\",\"license\":\"MIT\"},\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// End consumer library.\\nlibrary Client {\\n /// @dev RMN depends on this struct, if changing, please notify the RMN maintainers.\\n struct EVMTokenAmount {\\n address token; // token address on the local chain.\\n uint256 amount; // Amount of tokens.\\n }\\n\\n struct Any2EVMMessage {\\n bytes32 messageId; // MessageId corresponding to ccipSend on source.\\n uint64 sourceChainSelector; // Source chain selector.\\n bytes sender; // abi.decode(sender) if coming from an EVM chain.\\n bytes data; // payload sent in original message.\\n EVMTokenAmount[] destTokenAmounts; // Tokens and their amounts in their destination chain representation.\\n }\\n\\n // If extraArgs is empty bytes, the default is 200k gas limit.\\n struct EVM2AnyMessage {\\n bytes receiver; // abi.encode(receiver address) for dest EVM chains\\n bytes data; // Data payload\\n EVMTokenAmount[] tokenAmounts; // Token transfers\\n address feeToken; // Address of feeToken. address(0) means you will send msg.value.\\n bytes extraArgs; // Populate this with _argsToBytes(EVMExtraArgsV1)\\n }\\n\\n // bytes4(keccak256(\\\"CCIP EVMExtraArgsV1\\\"));\\n bytes4 public constant EVM_EXTRA_ARGS_V1_TAG = 0x97a657c9;\\n struct EVMExtraArgsV1 {\\n uint256 gasLimit;\\n }\\n\\n function _argsToBytes(EVMExtraArgsV1 memory extraArgs) internal pure returns (bytes memory bts) {\\n return abi.encodeWithSelector(EVM_EXTRA_ARGS_V1_TAG, extraArgs);\\n }\\n}\\n\",\"keccak256\":\"0x8af3ac1085c87342373772fb1a0107c7b90258e6bfed318ab2a601a14477e679\",\"license\":\"MIT\"},\"@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0xfe4e8bb4861bb3860ba890ab91a3b818ec66e5a8f544fb608cfcb73f433472cd\",\"license\":\"MIT\"},\"@chainlink/contracts/src/v0.8/shared/interfaces/LinkTokenInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface LinkTokenInterface {\\n function allowance(address owner, address spender) external view returns (uint256 remaining);\\n\\n function approve(address spender, uint256 value) external returns (bool success);\\n\\n function balanceOf(address owner) external view returns (uint256 balance);\\n\\n function decimals() external view returns (uint8 decimalPlaces);\\n\\n function decreaseApproval(address spender, uint256 addedValue) external returns (bool success);\\n\\n function increaseApproval(address spender, uint256 subtractedValue) external;\\n\\n function name() external view returns (string memory tokenName);\\n\\n function symbol() external view returns (string memory tokenSymbol);\\n\\n function totalSupply() external view returns (uint256 totalTokensIssued);\\n\\n function transfer(address to, uint256 value) external returns (bool success);\\n\\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool success);\\n\\n function transferFrom(address from, address to, uint256 value) external returns (bool success);\\n}\\n\",\"keccak256\":\"0xac02fbc0c7d194e525a71f524d1f7c472df73e19c2b527d7b529badaeaf0ec51\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {OwnableUpgradeable} from \\\"./OwnableUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is specified at deployment time in the constructor for `Ownable`. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable2Step\\n struct Ownable2StepStorage {\\n address _pendingOwner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable2Step\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant Ownable2StepStorageLocation = 0x237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00;\\n\\n function _getOwnable2StepStorage() private pure returns (Ownable2StepStorage storage $) {\\n assembly {\\n $.slot := Ownable2StepStorageLocation\\n }\\n }\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n function __Ownable2Step_init() internal onlyInitializing {\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n return $._pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n $._pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n delete $._pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n if (pendingOwner() != sender) {\\n revert OwnableUnauthorizedAccount(sender);\\n }\\n _transferOwnership(sender);\\n }\\n}\\n\",\"keccak256\":\"0xbca4a4f66d98028293dba695851d1b20d3e0ba2fff7453fb241f192fa3fc6b6f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\\\";\\nimport {Initializable} from \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3f13b947637c4969c0644cab4ef399cdc4b67f101463b8775c5a43b118558e53\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set 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(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\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\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"},\"src/TrojanHorse.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\npragma solidity >=0.8.25;\\n\\nimport { UUPSUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport { Ownable2StepUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\nimport { IRouterClient } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol\\\";\\nimport { Client } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\\\";\\nimport { LinkTokenInterface } from \\\"@chainlink/contracts/src/v0.8/shared/interfaces/LinkTokenInterface.sol\\\";\\nimport { AggregatorV3Interface } from \\\"@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\\\";\\n\\ncontract TrojanHorse is UUPSUpgradeable, Ownable2StepUpgradeable {\\n struct TrajonHorseStorage {\\n IRouterClient router;\\n AggregatorV3Interface aggregator;\\n uint64 destinationChainSelector;\\n address receiver;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"battleoflayers.storage.trajonhorse\\\")) - 1)) & ~ bytes32(uint256(0xff))\\n //\\n bytes32 private constant TrajanHorseStorageLocation =\\n 0xe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00;\\n\\n // Event emitted when a message is sent to another chain.\\n event HorseSent( // The unique ID of the CCIP message.\\n bytes32 indexed messageId, uint256 soldierAmount, uint256 fees);\\n\\n error NotEnoughBalance();\\n\\n function _getTrajanHorseStorage() internal pure returns (TrajonHorseStorage storage $) {\\n assembly {\\n $.slot := TrajanHorseStorageLocation\\n }\\n }\\n\\n function initialize(\\n address owner_,\\n address router_,\\n address aggregator_,\\n uint256 chainSelector_,\\n address receiver_\\n )\\n external\\n initializer\\n {\\n _transferOwnership(owner_);\\n\\n TrajonHorseStorage storage $ = _getTrajanHorseStorage();\\n $.router = IRouterClient(router_);\\n $.aggregator = AggregatorV3Interface(aggregator_);\\n $.destinationChainSelector = uint64(chainSelector_);\\n $.receiver = receiver_;\\n }\\n\\n // only owner can upgrade\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner { }\\n\\n // function\\n\\n /// @notice Sends data to receiver on the destination chain.\\n /// @return messageId The ID of the message that was sent.\\n function sendHorse(uint256 fundForSoldiers) external payable onlyOwner returns (bytes32 messageId) {\\n (, int256 answer,,,) = _getTrajanHorseStorage().aggregator.latestRoundData();\\n uint8 decimal = _getTrajanHorseStorage().aggregator.decimals();\\n uint256 soldierAmount = fundForSoldiers * uint256(answer) / (10 ** decimal * 1 ether);\\n\\n address receiver = _getTrajanHorseStorage().receiver;\\n uint64 destinationChainSelector = _getTrajanHorseStorage().destinationChainSelector;\\n\\n // encode data\\n bytes memory data = abi.encode(block.chainid, soldierAmount);\\n\\n // Create an EVM2AnyMessage struct in memory with necessary information for sending a cross-chain message\\n Client.EVM2AnyMessage memory evm2AnyMessage = Client.EVM2AnyMessage({\\n receiver: abi.encode(receiver), // ABI-encoded\\n data: data, // ABI-encoded string\\n tokenAmounts: new Client.EVMTokenAmount[](0), // Empty array indicating no tokens are being sent\\n extraArgs: Client._argsToBytes(\\n // Additional arguments, setting gas limit\\n Client.EVMExtraArgsV1({ gasLimit: 200_000 })\\n ),\\n // Set the feeToken address, use native token\\n feeToken: address(0)\\n });\\n\\n // Get the fee required to send the message\\n uint256 fees = _getTrajanHorseStorage().router.getFee(destinationChainSelector, evm2AnyMessage);\\n\\n if (msg.value - fundForSoldiers < fees) {\\n revert NotEnoughBalance();\\n }\\n\\n // Send the message through the router and store the returned message ID\\n messageId = _getTrajanHorseStorage().router.ccipSend{ value: fees }(destinationChainSelector, evm2AnyMessage);\\n\\n // Emit an event with message details\\n emit HorseSent(messageId, soldierAmount, fees);\\n\\n // Return the message ID\\n return messageId;\\n }\\n\\n function getFee(uint256 fundForSoldiers) public view returns (uint256 fees, uint256 soldierAmount) {\\n (, int256 answer,,,) = _getTrajanHorseStorage().aggregator.latestRoundData();\\n uint8 decimal = _getTrajanHorseStorage().aggregator.decimals();\\n soldierAmount = fundForSoldiers * uint256(answer) / (10 ** decimal * 1 ether);\\n\\n address receiver = _getTrajanHorseStorage().receiver;\\n uint64 destinationChainSelector = _getTrajanHorseStorage().destinationChainSelector;\\n\\n // encode data\\n bytes memory data = abi.encode(block.chainid, soldierAmount);\\n\\n // Create an EVM2AnyMessage struct in memory with necessary information for sending a cross-chain message\\n Client.EVM2AnyMessage memory evm2AnyMessage = Client.EVM2AnyMessage({\\n receiver: abi.encode(receiver), // ABI-encoded\\n data: data, // ABI-encoded string\\n tokenAmounts: new Client.EVMTokenAmount[](0), // Empty array indicating no tokens are being sent\\n extraArgs: Client._argsToBytes(\\n // Additional arguments, setting gas limit\\n Client.EVMExtraArgsV1({ gasLimit: 200_000 })\\n ),\\n // Set the feeToken address, use native token\\n feeToken: address(0)\\n });\\n\\n // Get the fee required to send the message\\n fees = _getTrajanHorseStorage().router.getFee(destinationChainSelector, evm2AnyMessage);\\n }\\n}\\n\",\"keccak256\":\"0x5b64ab80ba7dfcf5e7ecf203ca6c746d62740c92b7190db91a93f4587f7b6155\",\"license\":\"UNLICENSED\"}},\"version\":1}",
+ "bytecode": "0x60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff16815250348015604257600080fd5b5060805161244961006c60003960008181610f6d01528181610fc2015261117d01526124496000f3fe60806040526004361061009c5760003560e01c806379ba50971161006457806379ba5097146101585780638da5cb5b1461016f578063ad3cb1cc1461019a578063e30c3978146101c5578063f2fde38b146101f0578063fcee45f4146102195761009c565b80634f1ef286146100a157806352d1902d146100bd578063530b97a4146100e8578063715018a61461011157806374af8ff514610128575b600080fd5b6100bb60048036038101906100b691906119e5565b610257565b005b3480156100c957600080fd5b506100d2610276565b6040516100df9190611a5a565b60405180910390f35b3480156100f457600080fd5b5061010f600480360381019061010a9190611aab565b6102a9565b005b34801561011d57600080fd5b5061012661053d565b005b610142600480360381019061013d9190611b26565b610551565b60405161014f9190611a5a565b60405180910390f35b34801561016457600080fd5b5061016d610a00565b005b34801561017b57600080fd5b50610184610a8f565b6040516101919190611b62565b60405180910390f35b3480156101a657600080fd5b506101af610ac7565b6040516101bc9190611bfc565b60405180910390f35b3480156101d157600080fd5b506101da610b00565b6040516101e79190611b62565b60405180910390f35b3480156101fc57600080fd5b5061021760048036038101906102129190611c1e565b610b38565b005b34801561022557600080fd5b50610240600480360381019061023b9190611b26565b610bf4565b60405161024e929190611c5a565b60405180910390f35b61025f610f6b565b61026882611051565b610272828261105c565b5050565b600061028061117b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b60006102b3611202565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156103015750825b9050600060018367ffffffffffffffff16148015610336575060003073ffffffffffffffffffffffffffffffffffffffff163b145b905081158015610344575080155b1561037b576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156103cb5760018560000160086101000a81548160ff0219169083151502179055505b6103d48a61122a565b60006103de61126a565b9050898160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550888160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550878160010160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550868160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505083156105315760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516105289190611cdc565b60405180910390a15b50505050505050505050565b610545611292565b61054f600061122a565b565b600061055b611292565b600061056561126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156105d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f79190611d84565b505050915050600061060761126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610675573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106999190611e38565b90506000670de0b6b3a764000082600a6106b39190611fc7565b6106bd9190612012565b83866106c99190612012565b6106d39190612083565b905060006106df61126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600061070f61126a565b60010160149054906101000a900467ffffffffffffffff1690506000468460405160200161073e929190611c5a565b604051602081830303815290604052905060006040518060a001604052808560405160200161076d9190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff8111156107a2576107a16118ba565b5b6040519080825280602002602001820160405280156107db57816020015b6107c86117fd565b8152602001906001900390816107c05790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610818604051806020016040528062030d40815250611319565b8152509050600061082761126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded85846040518363ffffffff1660e01b815260040161088592919061229f565b602060405180830381865afa1580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c691906122cf565b9050808a346108d591906122fc565b101561090d576040517fad3a8b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61091561126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166396f4e9f98286856040518463ffffffff1660e01b815260040161097492919061229f565b60206040518083038185885af1158015610992573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906109b7919061235c565b9850887faf4d8a84b234410af70315b833c476a761b33559f391cf26d8f3bf7baa5f12ee87836040516109eb929190611c5a565b60405180910390a25050505050505050919050565b6000610a0a611398565b90508073ffffffffffffffffffffffffffffffffffffffff16610a2b610b00565b73ffffffffffffffffffffffffffffffffffffffff1614610a8357806040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a7a9190611b62565b60405180910390fd5b610a8c8161122a565b50565b600080610a9a6113a0565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b600080610b0b6113c8565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b610b40611292565b6000610b4a6113c8565b9050818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff16610bae610a8f565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b6000806000610c0161126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c939190611d84565b5050509150506000610ca361126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d359190611e38565b9050670de0b6b3a764000081600a610d4d9190611fc7565b610d579190612012565b8286610d639190612012565b610d6d9190612083565b92506000610d7961126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000610da961126a565b60010160149054906101000a900467ffffffffffffffff16905060004686604051602001610dd8929190611c5a565b604051602081830303815290604052905060006040518060a0016040528085604051602001610e079190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff811115610e3c57610e3b6118ba565b5b604051908082528060200260200182016040528015610e7557816020015b610e626117fd565b815260200190600190039081610e5a5790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610eb2604051806020016040528062030d40815250611319565b8152509050610ebf61126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded84836040518363ffffffff1660e01b8152600401610f1d92919061229f565b602060405180830381865afa158015610f3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5e91906122cf565b9750505050505050915091565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148061101857507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610fff6113f0565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561104f576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b611059611292565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156110c457506040513d601f19601f820116820180604052508101906110c1919061235c565b60015b61110557816040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016110fc9190611b62565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b811461116c57806040517faa1d49a40000000000000000000000000000000000000000000000000000000081526004016111639190611a5a565b60405180910390fd5b6111768383611447565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614611200576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b60006112346113c8565b90508060000160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055611266826114ba565b5050565b60007fe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00905090565b61129a611398565b73ffffffffffffffffffffffffffffffffffffffff166112b8610a8f565b73ffffffffffffffffffffffffffffffffffffffff1614611317576112db611398565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161130e9190611b62565b60405180910390fd5b565b60606397a657c960e01b8260405160240161133491906123a5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b600033905090565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b60007f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00905090565b600061141e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114508261159b565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a26000815111156114ad576114a78282611668565b506114b6565b6114b56116ec565b5b5050565b60006114c46113a0565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036115f757806040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016115ee9190611b62565b60405180910390fd5b806116247f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff168460405161169291906123fc565b600060405180830381855af49150503d80600081146116cd576040519150601f19603f3d011682016040523d82523d6000602084013e6116d2565b606091505b50915091506116e2858383611729565b9250505092915050565b6000341115611727576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608261173e57611739826117b8565b6117b0565b60008251148015611766575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156117a857836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161179f9190611b62565b60405180910390fd5b8190506117b1565b5b9392505050565b6000815111156117cb5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061186c82611841565b9050919050565b61187c81611861565b811461188757600080fd5b50565b60008135905061189981611873565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6118f2826118a9565b810181811067ffffffffffffffff82111715611911576119106118ba565b5b80604052505050565b600061192461182d565b905061193082826118e9565b919050565b600067ffffffffffffffff8211156119505761194f6118ba565b5b611959826118a9565b9050602081019050919050565b82818337600083830152505050565b600061198861198384611935565b61191a565b9050828152602081018484840111156119a4576119a36118a4565b5b6119af848285611966565b509392505050565b600082601f8301126119cc576119cb61189f565b5b81356119dc848260208601611975565b91505092915050565b600080604083850312156119fc576119fb611837565b5b6000611a0a8582860161188a565b925050602083013567ffffffffffffffff811115611a2b57611a2a61183c565b5b611a37858286016119b7565b9150509250929050565b6000819050919050565b611a5481611a41565b82525050565b6000602082019050611a6f6000830184611a4b565b92915050565b6000819050919050565b611a8881611a75565b8114611a9357600080fd5b50565b600081359050611aa581611a7f565b92915050565b600080600080600060a08688031215611ac757611ac6611837565b5b6000611ad58882890161188a565b9550506020611ae68882890161188a565b9450506040611af78882890161188a565b9350506060611b0888828901611a96565b9250506080611b198882890161188a565b9150509295509295909350565b600060208284031215611b3c57611b3b611837565b5b6000611b4a84828501611a96565b91505092915050565b611b5c81611861565b82525050565b6000602082019050611b776000830184611b53565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611bb7578082015181840152602081019050611b9c565b60008484015250505050565b6000611bce82611b7d565b611bd88185611b88565b9350611be8818560208601611b99565b611bf1816118a9565b840191505092915050565b60006020820190508181036000830152611c168184611bc3565b905092915050565b600060208284031215611c3457611c33611837565b5b6000611c428482850161188a565b91505092915050565b611c5481611a75565b82525050565b6000604082019050611c6f6000830185611c4b565b611c7c6020830184611c4b565b9392505050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b6000611cc6611cc1611cbc84611c83565b611ca1565b611c8d565b9050919050565b611cd681611cab565b82525050565b6000602082019050611cf16000830184611ccd565b92915050565b600069ffffffffffffffffffff82169050919050565b611d1681611cf7565b8114611d2157600080fd5b50565b600081519050611d3381611d0d565b92915050565b6000819050919050565b611d4c81611d39565b8114611d5757600080fd5b50565b600081519050611d6981611d43565b92915050565b600081519050611d7e81611a7f565b92915050565b600080600080600060a08688031215611da057611d9f611837565b5b6000611dae88828901611d24565b9550506020611dbf88828901611d5a565b9450506040611dd088828901611d6f565b9350506060611de188828901611d6f565b9250506080611df288828901611d24565b9150509295509295909350565b600060ff82169050919050565b611e1581611dff565b8114611e2057600080fd5b50565b600081519050611e3281611e0c565b92915050565b600060208284031215611e4e57611e4d611837565b5b6000611e5c84828501611e23565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611eeb57808604811115611ec757611ec6611e65565b5b6001851615611ed65780820291505b8081029050611ee485611e94565b9450611eab565b94509492505050565b600082611f045760019050611fc0565b81611f125760009050611fc0565b8160018114611f285760028114611f3257611f61565b6001915050611fc0565b60ff841115611f4457611f43611e65565b5b8360020a915084821115611f5b57611f5a611e65565b5b50611fc0565b5060208310610133831016604e8410600b8410161715611f965782820a905083811115611f9157611f90611e65565b5b611fc0565b611fa38484846001611ea1565b92509050818404811115611fba57611fb9611e65565b5b81810290505b9392505050565b6000611fd282611a75565b9150611fdd83611dff565b925061200a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611ef4565b905092915050565b600061201d82611a75565b915061202883611a75565b925082820261203681611a75565b9150828204841483151761204d5761204c611e65565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061208e82611a75565b915061209983611a75565b9250826120a9576120a8612054565b5b828204905092915050565b6120bd81611c8d565b82525050565b600081519050919050565b600082825260208201905092915050565b60006120ea826120c3565b6120f481856120ce565b9350612104818560208601611b99565b61210d816118a9565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61214d81611861565b82525050565b61215c81611a75565b82525050565b6040820160008201516121786000850182612144565b50602082015161218b6020850182612153565b50505050565b600061219d8383612162565b60408301905092915050565b6000602082019050919050565b60006121c182612118565b6121cb8185612123565b93506121d683612134565b8060005b838110156122075781516121ee8882612191565b97506121f9836121a9565b9250506001810190506121da565b5085935050505092915050565b600060a083016000830151848203600086015261223182826120df565b9150506020830151848203602086015261224b82826120df565b9150506040830151848203604086015261226582826121b6565b915050606083015161227a6060860182612144565b506080830151848203608086015261229282826120df565b9150508091505092915050565b60006040820190506122b460008301856120b4565b81810360208301526122c68184612214565b90509392505050565b6000602082840312156122e5576122e4611837565b5b60006122f384828501611d6f565b91505092915050565b600061230782611a75565b915061231283611a75565b925082820390508181111561232a57612329611e65565b5b92915050565b61233981611a41565b811461234457600080fd5b50565b60008151905061235681612330565b92915050565b60006020828403121561237257612371611837565b5b600061238084828501612347565b91505092915050565b60208201600082015161239f6000850182612153565b50505050565b60006020820190506123ba6000830184612389565b92915050565b600081905092915050565b60006123d6826120c3565b6123e081856123c0565b93506123f0818560208601611b99565b80840191505092915050565b600061240882846123cb565b91508190509291505056fea264697066735822122062284939d8f0beb87eac9511f3cc420ed85a24701ee09e6f5cf06bc1c840945964736f6c63430008190033",
+ "deployedBytecode": "0x60806040526004361061009c5760003560e01c806379ba50971161006457806379ba5097146101585780638da5cb5b1461016f578063ad3cb1cc1461019a578063e30c3978146101c5578063f2fde38b146101f0578063fcee45f4146102195761009c565b80634f1ef286146100a157806352d1902d146100bd578063530b97a4146100e8578063715018a61461011157806374af8ff514610128575b600080fd5b6100bb60048036038101906100b691906119e5565b610257565b005b3480156100c957600080fd5b506100d2610276565b6040516100df9190611a5a565b60405180910390f35b3480156100f457600080fd5b5061010f600480360381019061010a9190611aab565b6102a9565b005b34801561011d57600080fd5b5061012661053d565b005b610142600480360381019061013d9190611b26565b610551565b60405161014f9190611a5a565b60405180910390f35b34801561016457600080fd5b5061016d610a00565b005b34801561017b57600080fd5b50610184610a8f565b6040516101919190611b62565b60405180910390f35b3480156101a657600080fd5b506101af610ac7565b6040516101bc9190611bfc565b60405180910390f35b3480156101d157600080fd5b506101da610b00565b6040516101e79190611b62565b60405180910390f35b3480156101fc57600080fd5b5061021760048036038101906102129190611c1e565b610b38565b005b34801561022557600080fd5b50610240600480360381019061023b9190611b26565b610bf4565b60405161024e929190611c5a565b60405180910390f35b61025f610f6b565b61026882611051565b610272828261105c565b5050565b600061028061117b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b60006102b3611202565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156103015750825b9050600060018367ffffffffffffffff16148015610336575060003073ffffffffffffffffffffffffffffffffffffffff163b145b905081158015610344575080155b1561037b576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156103cb5760018560000160086101000a81548160ff0219169083151502179055505b6103d48a61122a565b60006103de61126a565b9050898160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550888160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550878160010160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550868160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505083156105315760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516105289190611cdc565b60405180910390a15b50505050505050505050565b610545611292565b61054f600061122a565b565b600061055b611292565b600061056561126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156105d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f79190611d84565b505050915050600061060761126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610675573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106999190611e38565b90506000670de0b6b3a764000082600a6106b39190611fc7565b6106bd9190612012565b83866106c99190612012565b6106d39190612083565b905060006106df61126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600061070f61126a565b60010160149054906101000a900467ffffffffffffffff1690506000468460405160200161073e929190611c5a565b604051602081830303815290604052905060006040518060a001604052808560405160200161076d9190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff8111156107a2576107a16118ba565b5b6040519080825280602002602001820160405280156107db57816020015b6107c86117fd565b8152602001906001900390816107c05790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610818604051806020016040528062030d40815250611319565b8152509050600061082761126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded85846040518363ffffffff1660e01b815260040161088592919061229f565b602060405180830381865afa1580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c691906122cf565b9050808a346108d591906122fc565b101561090d576040517fad3a8b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61091561126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166396f4e9f98286856040518463ffffffff1660e01b815260040161097492919061229f565b60206040518083038185885af1158015610992573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906109b7919061235c565b9850887faf4d8a84b234410af70315b833c476a761b33559f391cf26d8f3bf7baa5f12ee87836040516109eb929190611c5a565b60405180910390a25050505050505050919050565b6000610a0a611398565b90508073ffffffffffffffffffffffffffffffffffffffff16610a2b610b00565b73ffffffffffffffffffffffffffffffffffffffff1614610a8357806040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a7a9190611b62565b60405180910390fd5b610a8c8161122a565b50565b600080610a9a6113a0565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b600080610b0b6113c8565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b610b40611292565b6000610b4a6113c8565b9050818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff16610bae610a8f565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b6000806000610c0161126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c939190611d84565b5050509150506000610ca361126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d359190611e38565b9050670de0b6b3a764000081600a610d4d9190611fc7565b610d579190612012565b8286610d639190612012565b610d6d9190612083565b92506000610d7961126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000610da961126a565b60010160149054906101000a900467ffffffffffffffff16905060004686604051602001610dd8929190611c5a565b604051602081830303815290604052905060006040518060a0016040528085604051602001610e079190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff811115610e3c57610e3b6118ba565b5b604051908082528060200260200182016040528015610e7557816020015b610e626117fd565b815260200190600190039081610e5a5790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610eb2604051806020016040528062030d40815250611319565b8152509050610ebf61126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded84836040518363ffffffff1660e01b8152600401610f1d92919061229f565b602060405180830381865afa158015610f3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5e91906122cf565b9750505050505050915091565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148061101857507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610fff6113f0565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561104f576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b611059611292565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156110c457506040513d601f19601f820116820180604052508101906110c1919061235c565b60015b61110557816040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016110fc9190611b62565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b811461116c57806040517faa1d49a40000000000000000000000000000000000000000000000000000000081526004016111639190611a5a565b60405180910390fd5b6111768383611447565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614611200576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b60006112346113c8565b90508060000160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055611266826114ba565b5050565b60007fe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00905090565b61129a611398565b73ffffffffffffffffffffffffffffffffffffffff166112b8610a8f565b73ffffffffffffffffffffffffffffffffffffffff1614611317576112db611398565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161130e9190611b62565b60405180910390fd5b565b60606397a657c960e01b8260405160240161133491906123a5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b600033905090565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b60007f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00905090565b600061141e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114508261159b565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a26000815111156114ad576114a78282611668565b506114b6565b6114b56116ec565b5b5050565b60006114c46113a0565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036115f757806040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016115ee9190611b62565b60405180910390fd5b806116247f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff168460405161169291906123fc565b600060405180830381855af49150503d80600081146116cd576040519150601f19603f3d011682016040523d82523d6000602084013e6116d2565b606091505b50915091506116e2858383611729565b9250505092915050565b6000341115611727576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608261173e57611739826117b8565b6117b0565b60008251148015611766575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156117a857836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161179f9190611b62565b60405180910390fd5b8190506117b1565b5b9392505050565b6000815111156117cb5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061186c82611841565b9050919050565b61187c81611861565b811461188757600080fd5b50565b60008135905061189981611873565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6118f2826118a9565b810181811067ffffffffffffffff82111715611911576119106118ba565b5b80604052505050565b600061192461182d565b905061193082826118e9565b919050565b600067ffffffffffffffff8211156119505761194f6118ba565b5b611959826118a9565b9050602081019050919050565b82818337600083830152505050565b600061198861198384611935565b61191a565b9050828152602081018484840111156119a4576119a36118a4565b5b6119af848285611966565b509392505050565b600082601f8301126119cc576119cb61189f565b5b81356119dc848260208601611975565b91505092915050565b600080604083850312156119fc576119fb611837565b5b6000611a0a8582860161188a565b925050602083013567ffffffffffffffff811115611a2b57611a2a61183c565b5b611a37858286016119b7565b9150509250929050565b6000819050919050565b611a5481611a41565b82525050565b6000602082019050611a6f6000830184611a4b565b92915050565b6000819050919050565b611a8881611a75565b8114611a9357600080fd5b50565b600081359050611aa581611a7f565b92915050565b600080600080600060a08688031215611ac757611ac6611837565b5b6000611ad58882890161188a565b9550506020611ae68882890161188a565b9450506040611af78882890161188a565b9350506060611b0888828901611a96565b9250506080611b198882890161188a565b9150509295509295909350565b600060208284031215611b3c57611b3b611837565b5b6000611b4a84828501611a96565b91505092915050565b611b5c81611861565b82525050565b6000602082019050611b776000830184611b53565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611bb7578082015181840152602081019050611b9c565b60008484015250505050565b6000611bce82611b7d565b611bd88185611b88565b9350611be8818560208601611b99565b611bf1816118a9565b840191505092915050565b60006020820190508181036000830152611c168184611bc3565b905092915050565b600060208284031215611c3457611c33611837565b5b6000611c428482850161188a565b91505092915050565b611c5481611a75565b82525050565b6000604082019050611c6f6000830185611c4b565b611c7c6020830184611c4b565b9392505050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b6000611cc6611cc1611cbc84611c83565b611ca1565b611c8d565b9050919050565b611cd681611cab565b82525050565b6000602082019050611cf16000830184611ccd565b92915050565b600069ffffffffffffffffffff82169050919050565b611d1681611cf7565b8114611d2157600080fd5b50565b600081519050611d3381611d0d565b92915050565b6000819050919050565b611d4c81611d39565b8114611d5757600080fd5b50565b600081519050611d6981611d43565b92915050565b600081519050611d7e81611a7f565b92915050565b600080600080600060a08688031215611da057611d9f611837565b5b6000611dae88828901611d24565b9550506020611dbf88828901611d5a565b9450506040611dd088828901611d6f565b9350506060611de188828901611d6f565b9250506080611df288828901611d24565b9150509295509295909350565b600060ff82169050919050565b611e1581611dff565b8114611e2057600080fd5b50565b600081519050611e3281611e0c565b92915050565b600060208284031215611e4e57611e4d611837565b5b6000611e5c84828501611e23565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611eeb57808604811115611ec757611ec6611e65565b5b6001851615611ed65780820291505b8081029050611ee485611e94565b9450611eab565b94509492505050565b600082611f045760019050611fc0565b81611f125760009050611fc0565b8160018114611f285760028114611f3257611f61565b6001915050611fc0565b60ff841115611f4457611f43611e65565b5b8360020a915084821115611f5b57611f5a611e65565b5b50611fc0565b5060208310610133831016604e8410600b8410161715611f965782820a905083811115611f9157611f90611e65565b5b611fc0565b611fa38484846001611ea1565b92509050818404811115611fba57611fb9611e65565b5b81810290505b9392505050565b6000611fd282611a75565b9150611fdd83611dff565b925061200a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611ef4565b905092915050565b600061201d82611a75565b915061202883611a75565b925082820261203681611a75565b9150828204841483151761204d5761204c611e65565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061208e82611a75565b915061209983611a75565b9250826120a9576120a8612054565b5b828204905092915050565b6120bd81611c8d565b82525050565b600081519050919050565b600082825260208201905092915050565b60006120ea826120c3565b6120f481856120ce565b9350612104818560208601611b99565b61210d816118a9565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61214d81611861565b82525050565b61215c81611a75565b82525050565b6040820160008201516121786000850182612144565b50602082015161218b6020850182612153565b50505050565b600061219d8383612162565b60408301905092915050565b6000602082019050919050565b60006121c182612118565b6121cb8185612123565b93506121d683612134565b8060005b838110156122075781516121ee8882612191565b97506121f9836121a9565b9250506001810190506121da565b5085935050505092915050565b600060a083016000830151848203600086015261223182826120df565b9150506020830151848203602086015261224b82826120df565b9150506040830151848203604086015261226582826121b6565b915050606083015161227a6060860182612144565b506080830151848203608086015261229282826120df565b9150508091505092915050565b60006040820190506122b460008301856120b4565b81810360208301526122c68184612214565b90509392505050565b6000602082840312156122e5576122e4611837565b5b60006122f384828501611d6f565b91505092915050565b600061230782611a75565b915061231283611a75565b925082820390508181111561232a57612329611e65565b5b92915050565b61233981611a41565b811461234457600080fd5b50565b60008151905061235681612330565b92915050565b60006020828403121561237257612371611837565b5b600061238084828501612347565b91505092915050565b60208201600082015161239f6000850182612153565b50505050565b60006020820190506123ba6000830184612389565b92915050565b600081905092915050565b60006123d6826120c3565b6123e081856123c0565b93506123f0818560208601611b99565b80840191505092915050565b600061240882846123cb565b91508190509291505056fea264697066735822122062284939d8f0beb87eac9511f3cc420ed85a24701ee09e6f5cf06bc1c840945964736f6c63430008190033",
+ "devdoc": {
+ "errors": {
+ "AddressEmptyCode(address)": [
+ {
+ "details": "There's no code at `target` (it is not a contract)."
+ }
+ ],
+ "ERC1967InvalidImplementation(address)": [
+ {
+ "details": "The `implementation` of the proxy is invalid."
+ }
+ ],
+ "ERC1967NonPayable()": [
+ {
+ "details": "An upgrade function sees `msg.value > 0` that may be lost."
+ }
+ ],
+ "FailedInnerCall()": [
+ {
+ "details": "A call to an address target failed. The target may have reverted."
+ }
+ ],
+ "InvalidInitialization()": [
+ {
+ "details": "The contract is already initialized."
+ }
+ ],
+ "NotInitializing()": [
+ {
+ "details": "The contract is not initializing."
+ }
+ ],
+ "OwnableInvalidOwner(address)": [
+ {
+ "details": "The owner is not a valid owner account. (eg. `address(0)`)"
+ }
+ ],
+ "OwnableUnauthorizedAccount(address)": [
+ {
+ "details": "The caller account is not authorized to perform an operation."
+ }
+ ],
+ "UUPSUnauthorizedCallContext()": [
+ {
+ "details": "The call is from an unauthorized context."
+ }
+ ],
+ "UUPSUnsupportedProxiableUUID(bytes32)": [
+ {
+ "details": "The storage `slot` is unsupported as a UUID."
+ }
+ ]
+ },
+ "events": {
+ "Initialized(uint64)": {
+ "details": "Triggered when the contract has been initialized or reinitialized."
+ },
+ "Upgraded(address)": {
+ "details": "Emitted when the implementation is upgraded."
+ }
+ },
+ "kind": "dev",
+ "methods": {
+ "acceptOwnership()": {
+ "details": "The new owner accepts the ownership transfer."
+ },
+ "owner()": {
+ "details": "Returns the address of the current owner."
+ },
+ "pendingOwner()": {
+ "details": "Returns the address of the pending owner."
+ },
+ "proxiableUUID()": {
+ "details": "Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier."
+ },
+ "renounceOwnership()": {
+ "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."
+ },
+ "sendHorse(uint256)": {
+ "returns": {
+ "messageId": "The ID of the message that was sent."
+ }
+ },
+ "transferOwnership(address)": {
+ "details": "Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner."
+ },
+ "upgradeToAndCall(address,bytes)": {
+ "custom:oz-upgrades-unsafe-allow-reachable": "delegatecall",
+ "details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."
+ }
+ },
+ "version": 1
+ },
+ "userdoc": {
+ "kind": "user",
+ "methods": {
+ "sendHorse(uint256)": {
+ "notice": "Sends data to receiver on the destination chain."
+ }
+ },
+ "version": 1
+ },
+ "storageLayout": {
+ "storage": [],
+ "types": null
+ }
+}
\ No newline at end of file
diff --git a/packages/contracts/deployments/fuji/TrojanHorse_Proxy.json b/packages/contracts/deployments/fuji/TrojanHorse_Proxy.json
new file mode 100644
index 0000000..716d237
--- /dev/null
+++ b/packages/contracts/deployments/fuji/TrojanHorse_Proxy.json
@@ -0,0 +1,137 @@
+{
+ "address": "0xD8224921832bc7Fb86225B5092D7156c05751ef8",
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "_logic",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "_data",
+ "type": "bytes"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "constructor"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "previousAdmin",
+ "type": "address"
+ },
+ {
+ "indexed": false,
+ "internalType": "address",
+ "name": "newAdmin",
+ "type": "address"
+ }
+ ],
+ "name": "AdminChanged",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "beacon",
+ "type": "address"
+ }
+ ],
+ "name": "BeaconUpgraded",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "Upgraded",
+ "type": "event"
+ },
+ {
+ "stateMutability": "payable",
+ "type": "fallback"
+ },
+ {
+ "stateMutability": "payable",
+ "type": "receive"
+ }
+ ],
+ "transactionHash": "0xc417809af09f36d6b30b3cd811f2666aa11df55517bb14d8ef606cf01e9b0640",
+ "receipt": {
+ "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
+ "from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "contractAddress": null,
+ "transactionIndex": 0,
+ "gasUsed": "375147",
+ "logsBloom": "0x00000000000000000000000000002000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000200000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000800000000000000000000000080000000000000000000000008000000000100000000000001000000000000000000000000000000000000000020000000000000000000000000000000000004000400020000000020000000000000000000000200000000800000000000000000000000000000000000",
+ "blockHash": "0xd9c6aec778f357d3e47142301c415ff3539b281144d514dafd2888c38f2760e2",
+ "transactionHash": "0xc417809af09f36d6b30b3cd811f2666aa11df55517bb14d8ef606cf01e9b0640",
+ "logs": [
+ {
+ "transactionIndex": 0,
+ "blockNumber": 31829913,
+ "transactionHash": "0xc417809af09f36d6b30b3cd811f2666aa11df55517bb14d8ef606cf01e9b0640",
+ "address": "0xD8224921832bc7Fb86225B5092D7156c05751ef8",
+ "topics": [
+ "0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
+ "0x000000000000000000000000b0d02c3025068d889e3a6d77ed48a9f7062be153"
+ ],
+ "data": "0x",
+ "logIndex": 0,
+ "blockHash": "0xd9c6aec778f357d3e47142301c415ff3539b281144d514dafd2888c38f2760e2"
+ },
+ {
+ "transactionIndex": 0,
+ "blockNumber": 31829913,
+ "transactionHash": "0xc417809af09f36d6b30b3cd811f2666aa11df55517bb14d8ef606cf01e9b0640",
+ "address": "0xD8224921832bc7Fb86225B5092D7156c05751ef8",
+ "topics": [
+ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "0x000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560"
+ ],
+ "data": "0x",
+ "logIndex": 1,
+ "blockHash": "0xd9c6aec778f357d3e47142301c415ff3539b281144d514dafd2888c38f2760e2"
+ },
+ {
+ "transactionIndex": 0,
+ "blockNumber": 31829913,
+ "transactionHash": "0xc417809af09f36d6b30b3cd811f2666aa11df55517bb14d8ef606cf01e9b0640",
+ "address": "0xD8224921832bc7Fb86225B5092D7156c05751ef8",
+ "topics": [
+ "0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"
+ ],
+ "data": "0x0000000000000000000000000000000000000000000000000000000000000001",
+ "logIndex": 2,
+ "blockHash": "0xd9c6aec778f357d3e47142301c415ff3539b281144d514dafd2888c38f2760e2"
+ }
+ ],
+ "blockNumber": 31829913,
+ "cumulativeGasUsed": "375147",
+ "status": 1,
+ "byzantium": true
+ },
+ "args": [
+ "0xB0D02c3025068D889E3a6d77ed48a9F7062bE153",
+ "0x530b97a4000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560000000000000000000000000f694e193200268f9a4868e4aa017a0118c9a81770000000000000000000000005498bb86bc934c8d34fda08e81d444153d0d06ad000000000000000000000000000000000000000000000000de41ba4fc9d91ad900000000000000000000000010d5617ef73e62545f45017a0f85847c081b9fce"
+ ],
+ "numDeployments": 1,
+ "bytecode": "0x60806040526040516107353803806107358339810160408190526100229161031e565b61002e82826000610035565b505061043b565b61003e8361006b565b60008251118061004b5750805b156100665761006483836100ab60201b6100291760201c565b505b505050565b610074816100d7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100d0838360405180606001604052806027815260200161070e602791396101a9565b9392505050565b6100ea8161022260201b6100551760201c565b6101515760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61023160201b6100641760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060600080856001600160a01b0316856040516101c691906103ec565b600060405180830381855af49150503d8060008114610201576040519150601f19603f3d011682016040523d82523d6000602084013e610206565b606091505b50909250905061021886838387610234565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102a0578251610299576001600160a01b0385163b6102995760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610148565b50816102aa565b6102aa83836102b2565b949350505050565b8151156102c25781518083602001fd5b8060405162461bcd60e51b81526004016101489190610408565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561030d5781810151838201526020016102f5565b838111156100645750506000910152565b6000806040838503121561033157600080fd5b82516001600160a01b038116811461034857600080fd5b60208401519092506001600160401b038082111561036557600080fd5b818501915085601f83011261037957600080fd5b81518181111561038b5761038b6102dc565b604051601f8201601f19908116603f011681019083821181831017156103b3576103b36102dc565b816040528281528860208487010111156103cc57600080fd5b6103dd8360208301602088016102f2565b80955050505050509250929050565b600082516103fe8184602087016102f2565b9190910192915050565b60208152600082518060208401526104278160408501602087016102f2565b601f01601f19169190910160400192915050565b6102c48061044a6000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",
+ "deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033"
+}
\ No newline at end of file
diff --git a/packages/contracts/deployments/op_sepolia/TrajonHorse_Implementation.json b/packages/contracts/deployments/op_sepolia/TrajonHorse_Implementation.json
deleted file mode 100644
index e759882..0000000
--- a/packages/contracts/deployments/op_sepolia/TrajonHorse_Implementation.json
+++ /dev/null
@@ -1,456 +0,0 @@
-{
- "address": "0x0f2446405956D8301972616D81b0Ac23D82f638A",
- "abi": [
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "target",
- "type": "address"
- }
- ],
- "name": "AddressEmptyCode",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "ERC1967InvalidImplementation",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "ERC1967NonPayable",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "FailedInnerCall",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "InvalidInitialization",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotEnoughBalance",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "NotInitializing",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner",
- "type": "address"
- }
- ],
- "name": "OwnableInvalidOwner",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "account",
- "type": "address"
- }
- ],
- "name": "OwnableUnauthorizedAccount",
- "type": "error"
- },
- {
- "inputs": [],
- "name": "UUPSUnauthorizedCallContext",
- "type": "error"
- },
- {
- "inputs": [
- {
- "internalType": "bytes32",
- "name": "slot",
- "type": "bytes32"
- }
- ],
- "name": "UUPSUnsupportedProxiableUUID",
- "type": "error"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "bytes32",
- "name": "messageId",
- "type": "bytes32"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "soldierAmount",
- "type": "uint256"
- },
- {
- "indexed": false,
- "internalType": "uint256",
- "name": "fees",
- "type": "uint256"
- }
- ],
- "name": "HorseSent",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": false,
- "internalType": "uint64",
- "name": "version",
- "type": "uint64"
- }
- ],
- "name": "Initialized",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferStarted",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "previousOwner",
- "type": "address"
- },
- {
- "indexed": true,
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "OwnershipTransferred",
- "type": "event"
- },
- {
- "anonymous": false,
- "inputs": [
- {
- "indexed": true,
- "internalType": "address",
- "name": "implementation",
- "type": "address"
- }
- ],
- "name": "Upgraded",
- "type": "event"
- },
- {
- "inputs": [],
- "name": "UPGRADE_INTERFACE_VERSION",
- "outputs": [
- {
- "internalType": "string",
- "name": "",
- "type": "string"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "acceptOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "owner_",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "router_",
- "type": "address"
- },
- {
- "internalType": "address",
- "name": "aggregator_",
- "type": "address"
- },
- {
- "internalType": "uint256",
- "name": "chainSelector_",
- "type": "uint256"
- },
- {
- "internalType": "address",
- "name": "receiver_",
- "type": "address"
- }
- ],
- "name": "initialize",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "owner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "pendingOwner",
- "outputs": [
- {
- "internalType": "address",
- "name": "",
- "type": "address"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "proxiableUUID",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "",
- "type": "bytes32"
- }
- ],
- "stateMutability": "view",
- "type": "function"
- },
- {
- "inputs": [],
- "name": "renounceOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "uint256",
- "name": "fundForSoldiers",
- "type": "uint256"
- }
- ],
- "name": "sendHorse",
- "outputs": [
- {
- "internalType": "bytes32",
- "name": "messageId",
- "type": "bytes32"
- }
- ],
- "stateMutability": "payable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newOwner",
- "type": "address"
- }
- ],
- "name": "transferOwnership",
- "outputs": [],
- "stateMutability": "nonpayable",
- "type": "function"
- },
- {
- "inputs": [
- {
- "internalType": "address",
- "name": "newImplementation",
- "type": "address"
- },
- {
- "internalType": "bytes",
- "name": "data",
- "type": "bytes"
- }
- ],
- "name": "upgradeToAndCall",
- "outputs": [],
- "stateMutability": "payable",
- "type": "function"
- }
- ],
- "transactionHash": "0x39911c58e83ee2fe66f8e1a68f089d64bc05d8334570bf18f3004106087a8816",
- "receipt": {
- "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
- "from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
- "contractAddress": null,
- "transactionIndex": 1,
- "gasUsed": "1846236",
- "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
- "blockHash": "0x1c759c4f7a3ac39454b5a3562c46abe1388e6bfd4f677c448a3fdaa832c90b12",
- "transactionHash": "0x39911c58e83ee2fe66f8e1a68f089d64bc05d8334570bf18f3004106087a8816",
- "logs": [],
- "blockNumber": 10605501,
- "cumulativeGasUsed": "1890087",
- "status": 1,
- "byzantium": true
- },
- "args": [],
- "numDeployments": 1,
- "solcInputHash": "e59bac4a506b824d374b05560553bdaf",
- "metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ERC1967InvalidImplementation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC1967NonPayable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedInnerCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotEnoughBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UUPSUnauthorizedCallContext\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"slot\",\"type\":\"bytes32\"}],\"name\":\"UUPSUnsupportedProxiableUUID\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"soldierAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"}],\"name\":\"HorseSent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"UPGRADE_INTERFACE_VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"router_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"aggregator_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainSelector_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fundForSoldiers\",\"type\":\"uint256\"}],\"name\":\"sendHorse\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"AddressEmptyCode(address)\":[{\"details\":\"There's no code at `target` (it is not a contract).\"}],\"ERC1967InvalidImplementation(address)\":[{\"details\":\"The `implementation` of the proxy is invalid.\"}],\"ERC1967NonPayable()\":[{\"details\":\"An upgrade function sees `msg.value > 0` that may be lost.\"}],\"FailedInnerCall()\":[{\"details\":\"A call to an address target failed. The target may have reverted.\"}],\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"UUPSUnauthorizedCallContext()\":[{\"details\":\"The call is from an unauthorized context.\"}],\"UUPSUnsupportedProxiableUUID(bytes32)\":[{\"details\":\"The storage `slot` is unsupported as a UUID.\"}]},\"events\":{\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"acceptOwnership()\":{\"details\":\"The new owner accepts the ownership transfer.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pendingOwner()\":{\"details\":\"Returns the address of the pending owner.\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"sendHorse(uint256)\":{\"returns\":{\"messageId\":\"The ID of the message that was sent.\"}},\"transferOwnership(address)\":{\"details\":\"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"sendHorse(uint256)\":{\"notice\":\"Sends data to receiver on the destination chain.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/TrajonHorse.sol\":\"TrajonHorse\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {Client} from \\\"../libraries/Client.sol\\\";\\n\\ninterface IRouterClient {\\n error UnsupportedDestinationChain(uint64 destChainSelector);\\n error InsufficientFeeTokenAmount();\\n error InvalidMsgValue();\\n\\n /// @notice Checks if the given chain ID is supported for sending/receiving.\\n /// @param chainSelector The chain to check.\\n /// @return supported is true if it is supported, false if not.\\n function isChainSupported(uint64 chainSelector) external view returns (bool supported);\\n\\n /// @notice Gets a list of all supported tokens which can be sent or received\\n /// to/from a given chain id.\\n /// @param chainSelector The chainSelector.\\n /// @return tokens The addresses of all tokens that are supported.\\n function getSupportedTokens(uint64 chainSelector) external view returns (address[] memory tokens);\\n\\n /// @param destinationChainSelector The destination chainSelector\\n /// @param message The cross-chain CCIP message including data and/or tokens\\n /// @return fee returns execution fee for the message\\n /// delivery to destination chain, denominated in the feeToken specified in the message.\\n /// @dev Reverts with appropriate reason upon invalid message.\\n function getFee(\\n uint64 destinationChainSelector,\\n Client.EVM2AnyMessage memory message\\n ) external view returns (uint256 fee);\\n\\n /// @notice Request a message to be sent to the destination chain\\n /// @param destinationChainSelector The destination chain ID\\n /// @param message The cross-chain CCIP message including data and/or tokens\\n /// @return messageId The message ID\\n /// @dev Note if msg.value is larger than the required fee (from getFee) we accept\\n /// the overpayment with no refund.\\n /// @dev Reverts with appropriate reason upon invalid message.\\n function ccipSend(\\n uint64 destinationChainSelector,\\n Client.EVM2AnyMessage calldata message\\n ) external payable returns (bytes32);\\n}\\n\",\"keccak256\":\"0x7f2fdd93e516b7476c6fab099f6806adf5ceaf399b0cc415f6b9ede890f2379b\",\"license\":\"MIT\"},\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// End consumer library.\\nlibrary Client {\\n /// @dev RMN depends on this struct, if changing, please notify the RMN maintainers.\\n struct EVMTokenAmount {\\n address token; // token address on the local chain.\\n uint256 amount; // Amount of tokens.\\n }\\n\\n struct Any2EVMMessage {\\n bytes32 messageId; // MessageId corresponding to ccipSend on source.\\n uint64 sourceChainSelector; // Source chain selector.\\n bytes sender; // abi.decode(sender) if coming from an EVM chain.\\n bytes data; // payload sent in original message.\\n EVMTokenAmount[] destTokenAmounts; // Tokens and their amounts in their destination chain representation.\\n }\\n\\n // If extraArgs is empty bytes, the default is 200k gas limit.\\n struct EVM2AnyMessage {\\n bytes receiver; // abi.encode(receiver address) for dest EVM chains\\n bytes data; // Data payload\\n EVMTokenAmount[] tokenAmounts; // Token transfers\\n address feeToken; // Address of feeToken. address(0) means you will send msg.value.\\n bytes extraArgs; // Populate this with _argsToBytes(EVMExtraArgsV1)\\n }\\n\\n // bytes4(keccak256(\\\"CCIP EVMExtraArgsV1\\\"));\\n bytes4 public constant EVM_EXTRA_ARGS_V1_TAG = 0x97a657c9;\\n struct EVMExtraArgsV1 {\\n uint256 gasLimit;\\n }\\n\\n function _argsToBytes(EVMExtraArgsV1 memory extraArgs) internal pure returns (bytes memory bts) {\\n return abi.encodeWithSelector(EVM_EXTRA_ARGS_V1_TAG, extraArgs);\\n }\\n}\\n\",\"keccak256\":\"0x8af3ac1085c87342373772fb1a0107c7b90258e6bfed318ab2a601a14477e679\",\"license\":\"MIT\"},\"@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0xfe4e8bb4861bb3860ba890ab91a3b818ec66e5a8f544fb608cfcb73f433472cd\",\"license\":\"MIT\"},\"@chainlink/contracts/src/v0.8/shared/interfaces/LinkTokenInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface LinkTokenInterface {\\n function allowance(address owner, address spender) external view returns (uint256 remaining);\\n\\n function approve(address spender, uint256 value) external returns (bool success);\\n\\n function balanceOf(address owner) external view returns (uint256 balance);\\n\\n function decimals() external view returns (uint8 decimalPlaces);\\n\\n function decreaseApproval(address spender, uint256 addedValue) external returns (bool success);\\n\\n function increaseApproval(address spender, uint256 subtractedValue) external;\\n\\n function name() external view returns (string memory tokenName);\\n\\n function symbol() external view returns (string memory tokenSymbol);\\n\\n function totalSupply() external view returns (uint256 totalTokensIssued);\\n\\n function transfer(address to, uint256 value) external returns (bool success);\\n\\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool success);\\n\\n function transferFrom(address from, address to, uint256 value) external returns (bool success);\\n}\\n\",\"keccak256\":\"0xac02fbc0c7d194e525a71f524d1f7c472df73e19c2b527d7b529badaeaf0ec51\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {OwnableUpgradeable} from \\\"./OwnableUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is specified at deployment time in the constructor for `Ownable`. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable2Step\\n struct Ownable2StepStorage {\\n address _pendingOwner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable2Step\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant Ownable2StepStorageLocation = 0x237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00;\\n\\n function _getOwnable2StepStorage() private pure returns (Ownable2StepStorage storage $) {\\n assembly {\\n $.slot := Ownable2StepStorageLocation\\n }\\n }\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n function __Ownable2Step_init() internal onlyInitializing {\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n return $._pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n $._pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n delete $._pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n if (pendingOwner() != sender) {\\n revert OwnableUnauthorizedAccount(sender);\\n }\\n _transferOwnership(sender);\\n }\\n}\\n\",\"keccak256\":\"0xbca4a4f66d98028293dba695851d1b20d3e0ba2fff7453fb241f192fa3fc6b6f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\\\";\\nimport {Initializable} from \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3f13b947637c4969c0644cab4ef399cdc4b67f101463b8775c5a43b118558e53\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set 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(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\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\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"},\"src/TrajonHorse.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\npragma solidity >=0.8.25;\\n\\nimport { UUPSUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport { Ownable2StepUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\nimport { IRouterClient } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol\\\";\\nimport { Client } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\\\";\\nimport { LinkTokenInterface } from \\\"@chainlink/contracts/src/v0.8/shared/interfaces/LinkTokenInterface.sol\\\";\\nimport { AggregatorV3Interface } from \\\"@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\\\";\\n\\ncontract TrajonHorse is UUPSUpgradeable, Ownable2StepUpgradeable {\\n struct TrajonHorseStorage {\\n IRouterClient router;\\n AggregatorV3Interface aggregator;\\n uint64 destinationChainSelector;\\n address receiver;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"battleoflayers.storage.trajonhorse\\\")) - 1)) & ~ bytes32(uint256(0xff))\\n //\\n bytes32 private constant TrajanHorseStorageLocation =\\n 0xe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00;\\n\\n // Event emitted when a message is sent to another chain.\\n event HorseSent( // The unique ID of the CCIP message.\\n bytes32 indexed messageId, uint256 soldierAmount, uint256 fees);\\n\\n error NotEnoughBalance();\\n\\n function _getTrajanHorseStorage() internal pure returns (TrajonHorseStorage storage $) {\\n assembly {\\n $.slot := TrajanHorseStorageLocation\\n }\\n }\\n\\n function initialize(\\n address owner_,\\n address router_,\\n address aggregator_,\\n uint256 chainSelector_,\\n address receiver_\\n )\\n external\\n initializer\\n {\\n _transferOwnership(owner_);\\n\\n TrajonHorseStorage storage $ = _getTrajanHorseStorage();\\n $.router = IRouterClient(router_);\\n $.aggregator = AggregatorV3Interface(aggregator_);\\n $.destinationChainSelector = uint64(chainSelector_);\\n $.receiver = receiver_;\\n }\\n\\n // only owner can upgrade\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner { }\\n\\n // function\\n\\n /// @notice Sends data to receiver on the destination chain.\\n /// @return messageId The ID of the message that was sent.\\n function sendHorse(uint256 fundForSoldiers) external payable onlyOwner returns (bytes32 messageId) {\\n (, int256 answer,,,) = _getTrajanHorseStorage().aggregator.latestRoundData();\\n uint8 decimal = _getTrajanHorseStorage().aggregator.decimals();\\n uint256 soldierAmount = fundForSoldiers * 10 ** decimal / uint256(answer);\\n\\n address receiver = _getTrajanHorseStorage().receiver;\\n uint64 destinationChainSelector = _getTrajanHorseStorage().destinationChainSelector;\\n\\n // encode data\\n bytes memory data = abi.encode(block.chainid, soldierAmount);\\n\\n // Create an EVM2AnyMessage struct in memory with necessary information for sending a cross-chain message\\n Client.EVM2AnyMessage memory evm2AnyMessage = Client.EVM2AnyMessage({\\n receiver: abi.encode(receiver), // ABI-encoded\\n data: data, // ABI-encoded string\\n tokenAmounts: new Client.EVMTokenAmount[](0), // Empty array indicating no tokens are being sent\\n extraArgs: Client._argsToBytes(\\n // Additional arguments, setting gas limit\\n Client.EVMExtraArgsV1({ gasLimit: 200_000 })\\n ),\\n // Set the feeToken address, use native token\\n feeToken: address(0)\\n });\\n\\n // Get the fee required to send the message\\n uint256 fees = _getTrajanHorseStorage().router.getFee(destinationChainSelector, evm2AnyMessage);\\n\\n if (msg.value - fundForSoldiers < fees) {\\n revert NotEnoughBalance();\\n }\\n\\n // Send the message through the router and store the returned message ID\\n messageId = _getTrajanHorseStorage().router.ccipSend{ value: fees }(destinationChainSelector, evm2AnyMessage);\\n\\n // Emit an event with message details\\n emit HorseSent(messageId, soldierAmount, fees);\\n\\n // Return the message ID\\n return messageId;\\n }\\n}\\n\",\"keccak256\":\"0xf9ae89d1e480f2dba9cf68ca544c808d950effc76e3a8f7773cf9a6ad878605b\",\"license\":\"UNLICENSED\"}},\"version\":1}",
- "bytecode": "0x60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff16815250348015604257600080fd5b5060805161207661006c60003960008181610b9a01528181610bef0152610daa01526120766000f3fe6080604052600436106100915760003560e01c806379ba50971161005957806379ba50971461014d5780638da5cb5b14610164578063ad3cb1cc1461018f578063e30c3978146101ba578063f2fde38b146101e557610091565b80634f1ef2861461009657806352d1902d146100b2578063530b97a4146100dd578063715018a61461010657806374af8ff51461011d575b600080fd5b6100b060048036038101906100ab9190611612565b61020e565b005b3480156100be57600080fd5b506100c761022d565b6040516100d49190611687565b60405180910390f35b3480156100e957600080fd5b5061010460048036038101906100ff91906116d8565b610260565b005b34801561011257600080fd5b5061011b6104f4565b005b61013760048036038101906101329190611753565b610508565b6040516101449190611687565b60405180910390f35b34801561015957600080fd5b506101626109a4565b005b34801561017057600080fd5b50610179610a33565b604051610186919061178f565b60405180910390f35b34801561019b57600080fd5b506101a4610a6b565b6040516101b19190611829565b60405180910390f35b3480156101c657600080fd5b506101cf610aa4565b6040516101dc919061178f565b60405180910390f35b3480156101f157600080fd5b5061020c6004803603810190610207919061184b565b610adc565b005b610216610b98565b61021f82610c7e565b6102298282610c89565b5050565b6000610237610da8565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b600061026a610e2f565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156102b85750825b9050600060018367ffffffffffffffff161480156102ed575060003073ffffffffffffffffffffffffffffffffffffffff163b145b9050811580156102fb575080155b15610332576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156103825760018560000160086101000a81548160ff0219169083151502179055505b61038b8a610e57565b6000610395610e97565b9050898160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550888160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550878160010160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550868160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505083156104e85760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516104df91906118d1565b60405180910390a15b50505050505050505050565b6104fc610ebf565b6105066000610e57565b565b6000610512610ebf565b600061051c610e97565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561058a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ae9190611979565b50505091505060006105be610e97565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561062c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106509190611a2d565b905060008282600a6106629190611bbc565b8661066d9190611c07565b6106779190611c78565b90506000610683610e97565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060006106b3610e97565b60010160149054906101000a900467ffffffffffffffff169050600046846040516020016106e2929190611cb8565b604051602081830303815290604052905060006040518060a0016040528085604051602001610711919061178f565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff811115610746576107456114e7565b5b60405190808252806020026020018201604052801561077f57816020015b61076c61142a565b8152602001906001900390816107645790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016107bc604051806020016040528062030d40815250610f46565b815250905060006107cb610e97565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded85846040518363ffffffff1660e01b8152600401610829929190611ecc565b602060405180830381865afa158015610846573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086a9190611efc565b9050808a346108799190611f29565b10156108b1576040517fad3a8b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b9610e97565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166396f4e9f98286856040518463ffffffff1660e01b8152600401610918929190611ecc565b60206040518083038185885af1158015610936573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061095b9190611f89565b9850887faf4d8a84b234410af70315b833c476a761b33559f391cf26d8f3bf7baa5f12ee878360405161098f929190611cb8565b60405180910390a25050505050505050919050565b60006109ae610fc5565b90508073ffffffffffffffffffffffffffffffffffffffff166109cf610aa4565b73ffffffffffffffffffffffffffffffffffffffff1614610a2757806040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a1e919061178f565b60405180910390fd5b610a3081610e57565b50565b600080610a3e610fcd565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b600080610aaf610ff5565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b610ae4610ebf565b6000610aee610ff5565b9050818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff16610b52610a33565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161480610c4557507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610c2c61101d565b73ffffffffffffffffffffffffffffffffffffffff1614155b15610c7c576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610c86610ebf565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610cf157506040513d601f19601f82011682018060405250810190610cee9190611f89565b60015b610d3257816040517f4c9c8ce3000000000000000000000000000000000000000000000000000000008152600401610d29919061178f565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114610d9957806040517faa1d49a4000000000000000000000000000000000000000000000000000000008152600401610d909190611687565b60405180910390fd5b610da38383611074565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614610e2d576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b6000610e61610ff5565b90508060000160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055610e93826110e7565b5050565b60007fe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00905090565b610ec7610fc5565b73ffffffffffffffffffffffffffffffffffffffff16610ee5610a33565b73ffffffffffffffffffffffffffffffffffffffff1614610f4457610f08610fc5565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610f3b919061178f565b60405180910390fd5b565b60606397a657c960e01b82604051602401610f619190611fd2565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b600033905090565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b60007f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00905090565b600061104b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6111be565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61107d826111c8565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a26000815111156110da576110d48282611295565b506110e3565b6110e2611319565b5b5050565b60006110f1610fcd565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b0361122457806040517f4c9c8ce300000000000000000000000000000000000000000000000000000000815260040161121b919061178f565b60405180910390fd5b806112517f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6111be565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff16846040516112bf9190612029565b600060405180830381855af49150503d80600081146112fa576040519150601f19603f3d011682016040523d82523d6000602084013e6112ff565b606091505b509150915061130f858383611356565b9250505092915050565b6000341115611354576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608261136b57611366826113e5565b6113dd565b60008251148015611393575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156113d557836040517f9996b3150000000000000000000000000000000000000000000000000000000081526004016113cc919061178f565b60405180910390fd5b8190506113de565b5b9392505050565b6000815111156113f85780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006114998261146e565b9050919050565b6114a98161148e565b81146114b457600080fd5b50565b6000813590506114c6816114a0565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61151f826114d6565b810181811067ffffffffffffffff8211171561153e5761153d6114e7565b5b80604052505050565b600061155161145a565b905061155d8282611516565b919050565b600067ffffffffffffffff82111561157d5761157c6114e7565b5b611586826114d6565b9050602081019050919050565b82818337600083830152505050565b60006115b56115b084611562565b611547565b9050828152602081018484840111156115d1576115d06114d1565b5b6115dc848285611593565b509392505050565b600082601f8301126115f9576115f86114cc565b5b81356116098482602086016115a2565b91505092915050565b6000806040838503121561162957611628611464565b5b6000611637858286016114b7565b925050602083013567ffffffffffffffff81111561165857611657611469565b5b611664858286016115e4565b9150509250929050565b6000819050919050565b6116818161166e565b82525050565b600060208201905061169c6000830184611678565b92915050565b6000819050919050565b6116b5816116a2565b81146116c057600080fd5b50565b6000813590506116d2816116ac565b92915050565b600080600080600060a086880312156116f4576116f3611464565b5b6000611702888289016114b7565b9550506020611713888289016114b7565b9450506040611724888289016114b7565b9350506060611735888289016116c3565b9250506080611746888289016114b7565b9150509295509295909350565b60006020828403121561176957611768611464565b5b6000611777848285016116c3565b91505092915050565b6117898161148e565b82525050565b60006020820190506117a46000830184611780565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156117e45780820151818401526020810190506117c9565b60008484015250505050565b60006117fb826117aa565b61180581856117b5565b93506118158185602086016117c6565b61181e816114d6565b840191505092915050565b6000602082019050818103600083015261184381846117f0565b905092915050565b60006020828403121561186157611860611464565b5b600061186f848285016114b7565b91505092915050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b60006118bb6118b66118b184611878565b611896565b611882565b9050919050565b6118cb816118a0565b82525050565b60006020820190506118e660008301846118c2565b92915050565b600069ffffffffffffffffffff82169050919050565b61190b816118ec565b811461191657600080fd5b50565b60008151905061192881611902565b92915050565b6000819050919050565b6119418161192e565b811461194c57600080fd5b50565b60008151905061195e81611938565b92915050565b600081519050611973816116ac565b92915050565b600080600080600060a0868803121561199557611994611464565b5b60006119a388828901611919565b95505060206119b48882890161194f565b94505060406119c588828901611964565b93505060606119d688828901611964565b92505060806119e788828901611919565b9150509295509295909350565b600060ff82169050919050565b611a0a816119f4565b8114611a1557600080fd5b50565b600081519050611a2781611a01565b92915050565b600060208284031215611a4357611a42611464565b5b6000611a5184828501611a18565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611ae057808604811115611abc57611abb611a5a565b5b6001851615611acb5780820291505b8081029050611ad985611a89565b9450611aa0565b94509492505050565b600082611af95760019050611bb5565b81611b075760009050611bb5565b8160018114611b1d5760028114611b2757611b56565b6001915050611bb5565b60ff841115611b3957611b38611a5a565b5b8360020a915084821115611b5057611b4f611a5a565b5b50611bb5565b5060208310610133831016604e8410600b8410161715611b8b5782820a905083811115611b8657611b85611a5a565b5b611bb5565b611b988484846001611a96565b92509050818404811115611baf57611bae611a5a565b5b81810290505b9392505050565b6000611bc7826116a2565b9150611bd2836119f4565b9250611bff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611ae9565b905092915050565b6000611c12826116a2565b9150611c1d836116a2565b9250828202611c2b816116a2565b91508282048414831517611c4257611c41611a5a565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611c83826116a2565b9150611c8e836116a2565b925082611c9e57611c9d611c49565b5b828204905092915050565b611cb2816116a2565b82525050565b6000604082019050611ccd6000830185611ca9565b611cda6020830184611ca9565b9392505050565b611cea81611882565b82525050565b600081519050919050565b600082825260208201905092915050565b6000611d1782611cf0565b611d218185611cfb565b9350611d318185602086016117c6565b611d3a816114d6565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b611d7a8161148e565b82525050565b611d89816116a2565b82525050565b604082016000820151611da56000850182611d71565b506020820151611db86020850182611d80565b50505050565b6000611dca8383611d8f565b60408301905092915050565b6000602082019050919050565b6000611dee82611d45565b611df88185611d50565b9350611e0383611d61565b8060005b83811015611e34578151611e1b8882611dbe565b9750611e2683611dd6565b925050600181019050611e07565b5085935050505092915050565b600060a0830160008301518482036000860152611e5e8282611d0c565b91505060208301518482036020860152611e788282611d0c565b91505060408301518482036040860152611e928282611de3565b9150506060830151611ea76060860182611d71565b5060808301518482036080860152611ebf8282611d0c565b9150508091505092915050565b6000604082019050611ee16000830185611ce1565b8181036020830152611ef38184611e41565b90509392505050565b600060208284031215611f1257611f11611464565b5b6000611f2084828501611964565b91505092915050565b6000611f34826116a2565b9150611f3f836116a2565b9250828203905081811115611f5757611f56611a5a565b5b92915050565b611f668161166e565b8114611f7157600080fd5b50565b600081519050611f8381611f5d565b92915050565b600060208284031215611f9f57611f9e611464565b5b6000611fad84828501611f74565b91505092915050565b602082016000820151611fcc6000850182611d80565b50505050565b6000602082019050611fe76000830184611fb6565b92915050565b600081905092915050565b600061200382611cf0565b61200d8185611fed565b935061201d8185602086016117c6565b80840191505092915050565b60006120358284611ff8565b91508190509291505056fea26469706673582212205ec6b425e421d027845c553d46541865883fa2f074d6b27eda9aea0037d522b264736f6c63430008190033",
- "deployedBytecode": "0x6080604052600436106100915760003560e01c806379ba50971161005957806379ba50971461014d5780638da5cb5b14610164578063ad3cb1cc1461018f578063e30c3978146101ba578063f2fde38b146101e557610091565b80634f1ef2861461009657806352d1902d146100b2578063530b97a4146100dd578063715018a61461010657806374af8ff51461011d575b600080fd5b6100b060048036038101906100ab9190611612565b61020e565b005b3480156100be57600080fd5b506100c761022d565b6040516100d49190611687565b60405180910390f35b3480156100e957600080fd5b5061010460048036038101906100ff91906116d8565b610260565b005b34801561011257600080fd5b5061011b6104f4565b005b61013760048036038101906101329190611753565b610508565b6040516101449190611687565b60405180910390f35b34801561015957600080fd5b506101626109a4565b005b34801561017057600080fd5b50610179610a33565b604051610186919061178f565b60405180910390f35b34801561019b57600080fd5b506101a4610a6b565b6040516101b19190611829565b60405180910390f35b3480156101c657600080fd5b506101cf610aa4565b6040516101dc919061178f565b60405180910390f35b3480156101f157600080fd5b5061020c6004803603810190610207919061184b565b610adc565b005b610216610b98565b61021f82610c7e565b6102298282610c89565b5050565b6000610237610da8565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b600061026a610e2f565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156102b85750825b9050600060018367ffffffffffffffff161480156102ed575060003073ffffffffffffffffffffffffffffffffffffffff163b145b9050811580156102fb575080155b15610332576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156103825760018560000160086101000a81548160ff0219169083151502179055505b61038b8a610e57565b6000610395610e97565b9050898160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550888160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550878160010160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550868160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505083156104e85760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516104df91906118d1565b60405180910390a15b50505050505050505050565b6104fc610ebf565b6105066000610e57565b565b6000610512610ebf565b600061051c610e97565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561058a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105ae9190611979565b50505091505060006105be610e97565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561062c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106509190611a2d565b905060008282600a6106629190611bbc565b8661066d9190611c07565b6106779190611c78565b90506000610683610e97565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060006106b3610e97565b60010160149054906101000a900467ffffffffffffffff169050600046846040516020016106e2929190611cb8565b604051602081830303815290604052905060006040518060a0016040528085604051602001610711919061178f565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff811115610746576107456114e7565b5b60405190808252806020026020018201604052801561077f57816020015b61076c61142a565b8152602001906001900390816107645790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff1681526020016107bc604051806020016040528062030d40815250610f46565b815250905060006107cb610e97565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded85846040518363ffffffff1660e01b8152600401610829929190611ecc565b602060405180830381865afa158015610846573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086a9190611efc565b9050808a346108799190611f29565b10156108b1576040517fad3a8b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6108b9610e97565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166396f4e9f98286856040518463ffffffff1660e01b8152600401610918929190611ecc565b60206040518083038185885af1158015610936573d6000803e3d6000fd5b50505050506040513d601f19601f8201168201806040525081019061095b9190611f89565b9850887faf4d8a84b234410af70315b833c476a761b33559f391cf26d8f3bf7baa5f12ee878360405161098f929190611cb8565b60405180910390a25050505050505050919050565b60006109ae610fc5565b90508073ffffffffffffffffffffffffffffffffffffffff166109cf610aa4565b73ffffffffffffffffffffffffffffffffffffffff1614610a2757806040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a1e919061178f565b60405180910390fd5b610a3081610e57565b50565b600080610a3e610fcd565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b600080610aaf610ff5565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b610ae4610ebf565b6000610aee610ff5565b9050818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff16610b52610a33565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161480610c4557507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610c2c61101d565b73ffffffffffffffffffffffffffffffffffffffff1614155b15610c7c576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610c86610ebf565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610cf157506040513d601f19601f82011682018060405250810190610cee9190611f89565b60015b610d3257816040517f4c9c8ce3000000000000000000000000000000000000000000000000000000008152600401610d29919061178f565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114610d9957806040517faa1d49a4000000000000000000000000000000000000000000000000000000008152600401610d909190611687565b60405180910390fd5b610da38383611074565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614610e2d576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b6000610e61610ff5565b90508060000160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055610e93826110e7565b5050565b60007fe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00905090565b610ec7610fc5565b73ffffffffffffffffffffffffffffffffffffffff16610ee5610a33565b73ffffffffffffffffffffffffffffffffffffffff1614610f4457610f08610fc5565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610f3b919061178f565b60405180910390fd5b565b60606397a657c960e01b82604051602401610f619190611fd2565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b600033905090565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b60007f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00905090565b600061104b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6111be565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61107d826111c8565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a26000815111156110da576110d48282611295565b506110e3565b6110e2611319565b5b5050565b60006110f1610fcd565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b0361122457806040517f4c9c8ce300000000000000000000000000000000000000000000000000000000815260040161121b919061178f565b60405180910390fd5b806112517f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b6111be565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff16846040516112bf9190612029565b600060405180830381855af49150503d80600081146112fa576040519150601f19603f3d011682016040523d82523d6000602084013e6112ff565b606091505b509150915061130f858383611356565b9250505092915050565b6000341115611354576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608261136b57611366826113e5565b6113dd565b60008251148015611393575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156113d557836040517f9996b3150000000000000000000000000000000000000000000000000000000081526004016113cc919061178f565b60405180910390fd5b8190506113de565b5b9392505050565b6000815111156113f85780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006114998261146e565b9050919050565b6114a98161148e565b81146114b457600080fd5b50565b6000813590506114c6816114a0565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61151f826114d6565b810181811067ffffffffffffffff8211171561153e5761153d6114e7565b5b80604052505050565b600061155161145a565b905061155d8282611516565b919050565b600067ffffffffffffffff82111561157d5761157c6114e7565b5b611586826114d6565b9050602081019050919050565b82818337600083830152505050565b60006115b56115b084611562565b611547565b9050828152602081018484840111156115d1576115d06114d1565b5b6115dc848285611593565b509392505050565b600082601f8301126115f9576115f86114cc565b5b81356116098482602086016115a2565b91505092915050565b6000806040838503121561162957611628611464565b5b6000611637858286016114b7565b925050602083013567ffffffffffffffff81111561165857611657611469565b5b611664858286016115e4565b9150509250929050565b6000819050919050565b6116818161166e565b82525050565b600060208201905061169c6000830184611678565b92915050565b6000819050919050565b6116b5816116a2565b81146116c057600080fd5b50565b6000813590506116d2816116ac565b92915050565b600080600080600060a086880312156116f4576116f3611464565b5b6000611702888289016114b7565b9550506020611713888289016114b7565b9450506040611724888289016114b7565b9350506060611735888289016116c3565b9250506080611746888289016114b7565b9150509295509295909350565b60006020828403121561176957611768611464565b5b6000611777848285016116c3565b91505092915050565b6117898161148e565b82525050565b60006020820190506117a46000830184611780565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156117e45780820151818401526020810190506117c9565b60008484015250505050565b60006117fb826117aa565b61180581856117b5565b93506118158185602086016117c6565b61181e816114d6565b840191505092915050565b6000602082019050818103600083015261184381846117f0565b905092915050565b60006020828403121561186157611860611464565b5b600061186f848285016114b7565b91505092915050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b60006118bb6118b66118b184611878565b611896565b611882565b9050919050565b6118cb816118a0565b82525050565b60006020820190506118e660008301846118c2565b92915050565b600069ffffffffffffffffffff82169050919050565b61190b816118ec565b811461191657600080fd5b50565b60008151905061192881611902565b92915050565b6000819050919050565b6119418161192e565b811461194c57600080fd5b50565b60008151905061195e81611938565b92915050565b600081519050611973816116ac565b92915050565b600080600080600060a0868803121561199557611994611464565b5b60006119a388828901611919565b95505060206119b48882890161194f565b94505060406119c588828901611964565b93505060606119d688828901611964565b92505060806119e788828901611919565b9150509295509295909350565b600060ff82169050919050565b611a0a816119f4565b8114611a1557600080fd5b50565b600081519050611a2781611a01565b92915050565b600060208284031215611a4357611a42611464565b5b6000611a5184828501611a18565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611ae057808604811115611abc57611abb611a5a565b5b6001851615611acb5780820291505b8081029050611ad985611a89565b9450611aa0565b94509492505050565b600082611af95760019050611bb5565b81611b075760009050611bb5565b8160018114611b1d5760028114611b2757611b56565b6001915050611bb5565b60ff841115611b3957611b38611a5a565b5b8360020a915084821115611b5057611b4f611a5a565b5b50611bb5565b5060208310610133831016604e8410600b8410161715611b8b5782820a905083811115611b8657611b85611a5a565b5b611bb5565b611b988484846001611a96565b92509050818404811115611baf57611bae611a5a565b5b81810290505b9392505050565b6000611bc7826116a2565b9150611bd2836119f4565b9250611bff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611ae9565b905092915050565b6000611c12826116a2565b9150611c1d836116a2565b9250828202611c2b816116a2565b91508282048414831517611c4257611c41611a5a565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000611c83826116a2565b9150611c8e836116a2565b925082611c9e57611c9d611c49565b5b828204905092915050565b611cb2816116a2565b82525050565b6000604082019050611ccd6000830185611ca9565b611cda6020830184611ca9565b9392505050565b611cea81611882565b82525050565b600081519050919050565b600082825260208201905092915050565b6000611d1782611cf0565b611d218185611cfb565b9350611d318185602086016117c6565b611d3a816114d6565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b611d7a8161148e565b82525050565b611d89816116a2565b82525050565b604082016000820151611da56000850182611d71565b506020820151611db86020850182611d80565b50505050565b6000611dca8383611d8f565b60408301905092915050565b6000602082019050919050565b6000611dee82611d45565b611df88185611d50565b9350611e0383611d61565b8060005b83811015611e34578151611e1b8882611dbe565b9750611e2683611dd6565b925050600181019050611e07565b5085935050505092915050565b600060a0830160008301518482036000860152611e5e8282611d0c565b91505060208301518482036020860152611e788282611d0c565b91505060408301518482036040860152611e928282611de3565b9150506060830151611ea76060860182611d71565b5060808301518482036080860152611ebf8282611d0c565b9150508091505092915050565b6000604082019050611ee16000830185611ce1565b8181036020830152611ef38184611e41565b90509392505050565b600060208284031215611f1257611f11611464565b5b6000611f2084828501611964565b91505092915050565b6000611f34826116a2565b9150611f3f836116a2565b9250828203905081811115611f5757611f56611a5a565b5b92915050565b611f668161166e565b8114611f7157600080fd5b50565b600081519050611f8381611f5d565b92915050565b600060208284031215611f9f57611f9e611464565b5b6000611fad84828501611f74565b91505092915050565b602082016000820151611fcc6000850182611d80565b50505050565b6000602082019050611fe76000830184611fb6565b92915050565b600081905092915050565b600061200382611cf0565b61200d8185611fed565b935061201d8185602086016117c6565b80840191505092915050565b60006120358284611ff8565b91508190509291505056fea26469706673582212205ec6b425e421d027845c553d46541865883fa2f074d6b27eda9aea0037d522b264736f6c63430008190033",
- "devdoc": {
- "errors": {
- "AddressEmptyCode(address)": [
- {
- "details": "There's no code at `target` (it is not a contract)."
- }
- ],
- "ERC1967InvalidImplementation(address)": [
- {
- "details": "The `implementation` of the proxy is invalid."
- }
- ],
- "ERC1967NonPayable()": [
- {
- "details": "An upgrade function sees `msg.value > 0` that may be lost."
- }
- ],
- "FailedInnerCall()": [
- {
- "details": "A call to an address target failed. The target may have reverted."
- }
- ],
- "InvalidInitialization()": [
- {
- "details": "The contract is already initialized."
- }
- ],
- "NotInitializing()": [
- {
- "details": "The contract is not initializing."
- }
- ],
- "OwnableInvalidOwner(address)": [
- {
- "details": "The owner is not a valid owner account. (eg. `address(0)`)"
- }
- ],
- "OwnableUnauthorizedAccount(address)": [
- {
- "details": "The caller account is not authorized to perform an operation."
- }
- ],
- "UUPSUnauthorizedCallContext()": [
- {
- "details": "The call is from an unauthorized context."
- }
- ],
- "UUPSUnsupportedProxiableUUID(bytes32)": [
- {
- "details": "The storage `slot` is unsupported as a UUID."
- }
- ]
- },
- "events": {
- "Initialized(uint64)": {
- "details": "Triggered when the contract has been initialized or reinitialized."
- },
- "Upgraded(address)": {
- "details": "Emitted when the implementation is upgraded."
- }
- },
- "kind": "dev",
- "methods": {
- "acceptOwnership()": {
- "details": "The new owner accepts the ownership transfer."
- },
- "owner()": {
- "details": "Returns the address of the current owner."
- },
- "pendingOwner()": {
- "details": "Returns the address of the pending owner."
- },
- "proxiableUUID()": {
- "details": "Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier."
- },
- "renounceOwnership()": {
- "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."
- },
- "sendHorse(uint256)": {
- "returns": {
- "messageId": "The ID of the message that was sent."
- }
- },
- "transferOwnership(address)": {
- "details": "Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner."
- },
- "upgradeToAndCall(address,bytes)": {
- "custom:oz-upgrades-unsafe-allow-reachable": "delegatecall",
- "details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."
- }
- },
- "version": 1
- },
- "userdoc": {
- "kind": "user",
- "methods": {
- "sendHorse(uint256)": {
- "notice": "Sends data to receiver on the destination chain."
- }
- },
- "version": 1
- },
- "storageLayout": {
- "storage": [],
- "types": null
- }
-}
\ No newline at end of file
diff --git a/packages/contracts/deployments/op_sepolia/TrajonHorse.json b/packages/contracts/deployments/op_sepolia/TrojanHorse.json
similarity index 85%
rename from packages/contracts/deployments/op_sepolia/TrajonHorse.json
rename to packages/contracts/deployments/op_sepolia/TrojanHorse.json
index 1ec6fd2..baab3db 100644
--- a/packages/contracts/deployments/op_sepolia/TrajonHorse.json
+++ b/packages/contracts/deployments/op_sepolia/TrojanHorse.json
@@ -1,5 +1,5 @@
{
- "address": "0xD656FfB0277C75e36147d2fe6d056775ed07C891",
+ "address": "0x70116e215a2188E4D0b2eC8df2f2F44B85e7B9BF",
"abi": [
{
"anonymous": false,
@@ -235,6 +235,30 @@
"stateMutability": "nonpayable",
"type": "function"
},
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "getFee",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
{
"inputs": [
{
@@ -381,35 +405,35 @@
"type": "constructor"
}
],
- "transactionHash": "0xab3a2debf71c508ebed0d6d9d2362d6508bcf50dae8fa858815800a265c329e0",
+ "transactionHash": "0x024fb1611822297b0cf58da85015c7f18a914b0e83b2e0f4ad74dfeb5bd5fc91",
"receipt": {
"to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
"from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
"contractAddress": null,
"transactionIndex": 1,
"gasUsed": "375147",
- "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000040000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000100800000000000000000000000080000000000000000000000000000000000100000000040000000000000000000000000000000000000000000020000000000080000000000002000000000004000400020000000020000000000000000000000000000000000000000000000000000000000000000000",
- "blockHash": "0x4260b7c5b0b9f96091989a6176f27b4d1c13d5568f493df7cd17455c9cd9c586",
- "transactionHash": "0xab3a2debf71c508ebed0d6d9d2362d6508bcf50dae8fa858815800a265c329e0",
+ "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000000000000800000000020000000000000000000800000000000000000000000000000000400000000000000000000800000000000000000000000080000000000000000000000000000000000100008000000000000000000000000000000000000000000000000020000000040000000000000000000000000004000400020000000020200000000000000000000000000000000000000020000000000000000000200000",
+ "blockHash": "0x5733cbe921cd6cb6ec460993a6656d15299184e5d8299fa4c728bd55ca3048c5",
+ "transactionHash": "0x024fb1611822297b0cf58da85015c7f18a914b0e83b2e0f4ad74dfeb5bd5fc91",
"logs": [
{
"transactionIndex": 1,
- "blockNumber": 10605506,
- "transactionHash": "0xab3a2debf71c508ebed0d6d9d2362d6508bcf50dae8fa858815800a265c329e0",
- "address": "0xD656FfB0277C75e36147d2fe6d056775ed07C891",
+ "blockNumber": 10620198,
+ "transactionHash": "0x024fb1611822297b0cf58da85015c7f18a914b0e83b2e0f4ad74dfeb5bd5fc91",
+ "address": "0x70116e215a2188E4D0b2eC8df2f2F44B85e7B9BF",
"topics": [
"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
- "0x0000000000000000000000000f2446405956d8301972616d81b0ac23d82f638a"
+ "0x00000000000000000000000089ada4046ac5cfd0d1d82bef11b117e4ea31e8a2"
],
"data": "0x",
"logIndex": 0,
- "blockHash": "0x4260b7c5b0b9f96091989a6176f27b4d1c13d5568f493df7cd17455c9cd9c586"
+ "blockHash": "0x5733cbe921cd6cb6ec460993a6656d15299184e5d8299fa4c728bd55ca3048c5"
},
{
"transactionIndex": 1,
- "blockNumber": 10605506,
- "transactionHash": "0xab3a2debf71c508ebed0d6d9d2362d6508bcf50dae8fa858815800a265c329e0",
- "address": "0xD656FfB0277C75e36147d2fe6d056775ed07C891",
+ "blockNumber": 10620198,
+ "transactionHash": "0x024fb1611822297b0cf58da85015c7f18a914b0e83b2e0f4ad74dfeb5bd5fc91",
+ "address": "0x70116e215a2188E4D0b2eC8df2f2F44B85e7B9BF",
"topics": [
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
"0x0000000000000000000000000000000000000000000000000000000000000000",
@@ -417,42 +441,32 @@
],
"data": "0x",
"logIndex": 1,
- "blockHash": "0x4260b7c5b0b9f96091989a6176f27b4d1c13d5568f493df7cd17455c9cd9c586"
+ "blockHash": "0x5733cbe921cd6cb6ec460993a6656d15299184e5d8299fa4c728bd55ca3048c5"
},
{
"transactionIndex": 1,
- "blockNumber": 10605506,
- "transactionHash": "0xab3a2debf71c508ebed0d6d9d2362d6508bcf50dae8fa858815800a265c329e0",
- "address": "0xD656FfB0277C75e36147d2fe6d056775ed07C891",
+ "blockNumber": 10620198,
+ "transactionHash": "0x024fb1611822297b0cf58da85015c7f18a914b0e83b2e0f4ad74dfeb5bd5fc91",
+ "address": "0x70116e215a2188E4D0b2eC8df2f2F44B85e7B9BF",
"topics": [
"0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
"logIndex": 2,
- "blockHash": "0x4260b7c5b0b9f96091989a6176f27b4d1c13d5568f493df7cd17455c9cd9c586"
+ "blockHash": "0x5733cbe921cd6cb6ec460993a6656d15299184e5d8299fa4c728bd55ca3048c5"
}
],
- "blockNumber": 10605506,
+ "blockNumber": 10620198,
"cumulativeGasUsed": "419010",
"status": 1,
"byzantium": true
},
"args": [
- "0x0f2446405956D8301972616D81b0Ac23D82f638A",
- "0x530b97a4000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560000000000000000000000000114a20a10b43d4115e5aeef7345a1a71d2a60c5700000000000000000000000061ec26aa57019c486b10502285c5a3d4a4750ad7000000000000000000000000000000000000000000000000de41ba4fc9d91ad900000000000000000000000060688b3ba8816b4003b72f9b3927c3bb8e598005"
+ "0x89aDa4046aC5cfd0D1d82beF11B117E4Ea31E8a2",
+ "0x530b97a4000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560000000000000000000000000114a20a10b43d4115e5aeef7345a1a71d2a60c5700000000000000000000000061ec26aa57019c486b10502285c5a3d4a4750ad7000000000000000000000000000000000000000000000000de41ba4fc9d91ad900000000000000000000000010d5617ef73e62545f45017a0f85847c081b9fce"
],
- "numDeployments": 1,
+ "numDeployments": 4,
"bytecode": "0x60806040526040516107353803806107358339810160408190526100229161031e565b61002e82826000610035565b505061043b565b61003e8361006b565b60008251118061004b5750805b156100665761006483836100ab60201b6100291760201c565b505b505050565b610074816100d7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100d0838360405180606001604052806027815260200161070e602791396101a9565b9392505050565b6100ea8161022260201b6100551760201c565b6101515760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61023160201b6100641760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060600080856001600160a01b0316856040516101c691906103ec565b600060405180830381855af49150503d8060008114610201576040519150601f19603f3d011682016040523d82523d6000602084013e610206565b606091505b50909250905061021886838387610234565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102a0578251610299576001600160a01b0385163b6102995760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610148565b50816102aa565b6102aa83836102b2565b949350505050565b8151156102c25781518083602001fd5b8060405162461bcd60e51b81526004016101489190610408565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561030d5781810151838201526020016102f5565b838111156100645750506000910152565b6000806040838503121561033157600080fd5b82516001600160a01b038116811461034857600080fd5b60208401519092506001600160401b038082111561036557600080fd5b818501915085601f83011261037957600080fd5b81518181111561038b5761038b6102dc565b604051601f8201601f19908116603f011681019083821181831017156103b3576103b36102dc565b816040528281528860208487010111156103cc57600080fd5b6103dd8360208301602088016102f2565b80955050505050509250929050565b600082516103fe8184602087016102f2565b9190910192915050565b60208152600082518060208401526104278160408501602087016102f2565b601f01601f19169190910160400192915050565b6102c48061044a6000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",
"deployedBytecode": "0x60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033",
- "execute": {
- "methodName": "initialize",
- "args": [
- "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
- "0x114A20A10b43D4115e5aeef7345a1A71d2a60C57",
- "0x61Ec26aA57019C486B10502285c5A3D4A4750AD7",
- "16015286601757825753",
- "0x60688b3ba8816b4003b72f9b3927c3bb8e598005"
- ]
- },
- "implementation": "0x0f2446405956D8301972616D81b0Ac23D82f638A"
+ "implementation": "0xF92382E7b0FD233364e1042fDc1a948178b26D17"
}
\ No newline at end of file
diff --git a/packages/contracts/deployments/op_sepolia/TrojanHorse_Implementation.json b/packages/contracts/deployments/op_sepolia/TrojanHorse_Implementation.json
new file mode 100644
index 0000000..b5920e5
--- /dev/null
+++ b/packages/contracts/deployments/op_sepolia/TrojanHorse_Implementation.json
@@ -0,0 +1,480 @@
+{
+ "address": "0xF92382E7b0FD233364e1042fDc1a948178b26D17",
+ "abi": [
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "target",
+ "type": "address"
+ }
+ ],
+ "name": "AddressEmptyCode",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "ERC1967InvalidImplementation",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "ERC1967NonPayable",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "FailedInnerCall",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "InvalidInitialization",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotEnoughBalance",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "NotInitializing",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableInvalidOwner",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "account",
+ "type": "address"
+ }
+ ],
+ "name": "OwnableUnauthorizedAccount",
+ "type": "error"
+ },
+ {
+ "inputs": [],
+ "name": "UUPSUnauthorizedCallContext",
+ "type": "error"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "bytes32",
+ "name": "slot",
+ "type": "bytes32"
+ }
+ ],
+ "name": "UUPSUnsupportedProxiableUUID",
+ "type": "error"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ },
+ {
+ "indexed": false,
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ }
+ ],
+ "name": "HorseSent",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "internalType": "uint64",
+ "name": "version",
+ "type": "uint64"
+ }
+ ],
+ "name": "Initialized",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferStarted",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "previousOwner",
+ "type": "address"
+ },
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "OwnershipTransferred",
+ "type": "event"
+ },
+ {
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": true,
+ "internalType": "address",
+ "name": "implementation",
+ "type": "address"
+ }
+ ],
+ "name": "Upgraded",
+ "type": "event"
+ },
+ {
+ "inputs": [],
+ "name": "UPGRADE_INTERFACE_VERSION",
+ "outputs": [
+ {
+ "internalType": "string",
+ "name": "",
+ "type": "string"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "acceptOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "getFee",
+ "outputs": [
+ {
+ "internalType": "uint256",
+ "name": "fees",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "owner_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "router_",
+ "type": "address"
+ },
+ {
+ "internalType": "address",
+ "name": "aggregator_",
+ "type": "address"
+ },
+ {
+ "internalType": "uint256",
+ "name": "chainSelector_",
+ "type": "uint256"
+ },
+ {
+ "internalType": "address",
+ "name": "receiver_",
+ "type": "address"
+ }
+ ],
+ "name": "initialize",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "owner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "pendingOwner",
+ "outputs": [
+ {
+ "internalType": "address",
+ "name": "",
+ "type": "address"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "proxiableUUID",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
+ {
+ "inputs": [],
+ "name": "renounceOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "uint256",
+ "name": "fundForSoldiers",
+ "type": "uint256"
+ }
+ ],
+ "name": "sendHorse",
+ "outputs": [
+ {
+ "internalType": "bytes32",
+ "name": "messageId",
+ "type": "bytes32"
+ }
+ ],
+ "stateMutability": "payable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newOwner",
+ "type": "address"
+ }
+ ],
+ "name": "transferOwnership",
+ "outputs": [],
+ "stateMutability": "nonpayable",
+ "type": "function"
+ },
+ {
+ "inputs": [
+ {
+ "internalType": "address",
+ "name": "newImplementation",
+ "type": "address"
+ },
+ {
+ "internalType": "bytes",
+ "name": "data",
+ "type": "bytes"
+ }
+ ],
+ "name": "upgradeToAndCall",
+ "outputs": [],
+ "stateMutability": "payable",
+ "type": "function"
+ }
+ ],
+ "transactionHash": "0x1282723370b93c7f99e27095baf426683d480f150a1d00ba4b1dd5b18575c67a",
+ "receipt": {
+ "to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
+ "from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
+ "contractAddress": null,
+ "transactionIndex": 1,
+ "gasUsed": "2057987",
+ "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "blockHash": "0x1fbc9d337a7c706efd4b99c5e9169525c5a097988c134305aab970a260973179",
+ "transactionHash": "0x1282723370b93c7f99e27095baf426683d480f150a1d00ba4b1dd5b18575c67a",
+ "logs": [],
+ "blockNumber": 10621113,
+ "cumulativeGasUsed": "2101850",
+ "status": 1,
+ "byzantium": true
+ },
+ "args": [],
+ "numDeployments": 4,
+ "solcInputHash": "072036421b95051681b93d5e2153ae28",
+ "metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ERC1967InvalidImplementation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC1967NonPayable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedInnerCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotEnoughBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UUPSUnauthorizedCallContext\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"slot\",\"type\":\"bytes32\"}],\"name\":\"UUPSUnsupportedProxiableUUID\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"soldierAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"}],\"name\":\"HorseSent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"UPGRADE_INTERFACE_VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fundForSoldiers\",\"type\":\"uint256\"}],\"name\":\"getFee\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"fees\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"soldierAmount\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"router_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"aggregator_\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainSelector_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"receiver_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"fundForSoldiers\",\"type\":\"uint256\"}],\"name\":\"sendHorse\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"}],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"AddressEmptyCode(address)\":[{\"details\":\"There's no code at `target` (it is not a contract).\"}],\"ERC1967InvalidImplementation(address)\":[{\"details\":\"The `implementation` of the proxy is invalid.\"}],\"ERC1967NonPayable()\":[{\"details\":\"An upgrade function sees `msg.value > 0` that may be lost.\"}],\"FailedInnerCall()\":[{\"details\":\"A call to an address target failed. The target may have reverted.\"}],\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"UUPSUnauthorizedCallContext()\":[{\"details\":\"The call is from an unauthorized context.\"}],\"UUPSUnsupportedProxiableUUID(bytes32)\":[{\"details\":\"The storage `slot` is unsupported as a UUID.\"}]},\"events\":{\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"acceptOwnership()\":{\"details\":\"The new owner accepts the ownership transfer.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pendingOwner()\":{\"details\":\"Returns the address of the pending owner.\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"sendHorse(uint256)\":{\"returns\":{\"messageId\":\"The ID of the message that was sent.\"}},\"transferOwnership(address)\":{\"details\":\"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"sendHorse(uint256)\":{\"notice\":\"Sends data to receiver on the destination chain.\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/TrojanHorse.sol\":\"TrojanHorse\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {Client} from \\\"../libraries/Client.sol\\\";\\n\\ninterface IRouterClient {\\n error UnsupportedDestinationChain(uint64 destChainSelector);\\n error InsufficientFeeTokenAmount();\\n error InvalidMsgValue();\\n\\n /// @notice Checks if the given chain ID is supported for sending/receiving.\\n /// @param chainSelector The chain to check.\\n /// @return supported is true if it is supported, false if not.\\n function isChainSupported(uint64 chainSelector) external view returns (bool supported);\\n\\n /// @notice Gets a list of all supported tokens which can be sent or received\\n /// to/from a given chain id.\\n /// @param chainSelector The chainSelector.\\n /// @return tokens The addresses of all tokens that are supported.\\n function getSupportedTokens(uint64 chainSelector) external view returns (address[] memory tokens);\\n\\n /// @param destinationChainSelector The destination chainSelector\\n /// @param message The cross-chain CCIP message including data and/or tokens\\n /// @return fee returns execution fee for the message\\n /// delivery to destination chain, denominated in the feeToken specified in the message.\\n /// @dev Reverts with appropriate reason upon invalid message.\\n function getFee(\\n uint64 destinationChainSelector,\\n Client.EVM2AnyMessage memory message\\n ) external view returns (uint256 fee);\\n\\n /// @notice Request a message to be sent to the destination chain\\n /// @param destinationChainSelector The destination chain ID\\n /// @param message The cross-chain CCIP message including data and/or tokens\\n /// @return messageId The message ID\\n /// @dev Note if msg.value is larger than the required fee (from getFee) we accept\\n /// the overpayment with no refund.\\n /// @dev Reverts with appropriate reason upon invalid message.\\n function ccipSend(\\n uint64 destinationChainSelector,\\n Client.EVM2AnyMessage calldata message\\n ) external payable returns (bytes32);\\n}\\n\",\"keccak256\":\"0x7f2fdd93e516b7476c6fab099f6806adf5ceaf399b0cc415f6b9ede890f2379b\",\"license\":\"MIT\"},\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// End consumer library.\\nlibrary Client {\\n /// @dev RMN depends on this struct, if changing, please notify the RMN maintainers.\\n struct EVMTokenAmount {\\n address token; // token address on the local chain.\\n uint256 amount; // Amount of tokens.\\n }\\n\\n struct Any2EVMMessage {\\n bytes32 messageId; // MessageId corresponding to ccipSend on source.\\n uint64 sourceChainSelector; // Source chain selector.\\n bytes sender; // abi.decode(sender) if coming from an EVM chain.\\n bytes data; // payload sent in original message.\\n EVMTokenAmount[] destTokenAmounts; // Tokens and their amounts in their destination chain representation.\\n }\\n\\n // If extraArgs is empty bytes, the default is 200k gas limit.\\n struct EVM2AnyMessage {\\n bytes receiver; // abi.encode(receiver address) for dest EVM chains\\n bytes data; // Data payload\\n EVMTokenAmount[] tokenAmounts; // Token transfers\\n address feeToken; // Address of feeToken. address(0) means you will send msg.value.\\n bytes extraArgs; // Populate this with _argsToBytes(EVMExtraArgsV1)\\n }\\n\\n // bytes4(keccak256(\\\"CCIP EVMExtraArgsV1\\\"));\\n bytes4 public constant EVM_EXTRA_ARGS_V1_TAG = 0x97a657c9;\\n struct EVMExtraArgsV1 {\\n uint256 gasLimit;\\n }\\n\\n function _argsToBytes(EVMExtraArgsV1 memory extraArgs) internal pure returns (bytes memory bts) {\\n return abi.encodeWithSelector(EVM_EXTRA_ARGS_V1_TAG, extraArgs);\\n }\\n}\\n\",\"keccak256\":\"0x8af3ac1085c87342373772fb1a0107c7b90258e6bfed318ab2a601a14477e679\",\"license\":\"MIT\"},\"@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface AggregatorV3Interface {\\n function decimals() external view returns (uint8);\\n\\n function description() external view returns (string memory);\\n\\n function version() external view returns (uint256);\\n\\n function getRoundData(\\n uint80 _roundId\\n ) external view returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n\\n function latestRoundData()\\n external\\n view\\n returns (uint80 roundId, int256 answer, uint256 startedAt, uint256 updatedAt, uint80 answeredInRound);\\n}\\n\",\"keccak256\":\"0xfe4e8bb4861bb3860ba890ab91a3b818ec66e5a8f544fb608cfcb73f433472cd\",\"license\":\"MIT\"},\"@chainlink/contracts/src/v0.8/shared/interfaces/LinkTokenInterface.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface LinkTokenInterface {\\n function allowance(address owner, address spender) external view returns (uint256 remaining);\\n\\n function approve(address spender, uint256 value) external returns (bool success);\\n\\n function balanceOf(address owner) external view returns (uint256 balance);\\n\\n function decimals() external view returns (uint8 decimalPlaces);\\n\\n function decreaseApproval(address spender, uint256 addedValue) external returns (bool success);\\n\\n function increaseApproval(address spender, uint256 subtractedValue) external;\\n\\n function name() external view returns (string memory tokenName);\\n\\n function symbol() external view returns (string memory tokenSymbol);\\n\\n function totalSupply() external view returns (uint256 totalTokensIssued);\\n\\n function transfer(address to, uint256 value) external returns (bool success);\\n\\n function transferAndCall(address to, uint256 value, bytes calldata data) external returns (bool success);\\n\\n function transferFrom(address from, address to, uint256 value) external returns (bool success);\\n}\\n\",\"keccak256\":\"0xac02fbc0c7d194e525a71f524d1f7c472df73e19c2b527d7b529badaeaf0ec51\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {OwnableUpgradeable} from \\\"./OwnableUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is specified at deployment time in the constructor for `Ownable`. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable2Step\\n struct Ownable2StepStorage {\\n address _pendingOwner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable2Step\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant Ownable2StepStorageLocation = 0x237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00;\\n\\n function _getOwnable2StepStorage() private pure returns (Ownable2StepStorage storage $) {\\n assembly {\\n $.slot := Ownable2StepStorageLocation\\n }\\n }\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n function __Ownable2Step_init() internal onlyInitializing {\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n return $._pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n $._pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n delete $._pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n if (pendingOwner() != sender) {\\n revert OwnableUnauthorizedAccount(sender);\\n }\\n _transferOwnership(sender);\\n }\\n}\\n\",\"keccak256\":\"0xbca4a4f66d98028293dba695851d1b20d3e0ba2fff7453fb241f192fa3fc6b6f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\\\";\\nimport {Initializable} from \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3f13b947637c4969c0644cab4ef399cdc4b67f101463b8775c5a43b118558e53\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set 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(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\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\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"},\"src/TrojanHorse.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\npragma solidity >=0.8.25;\\n\\nimport { UUPSUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport { Ownable2StepUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\nimport { IRouterClient } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IRouterClient.sol\\\";\\nimport { Client } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\\\";\\nimport { LinkTokenInterface } from \\\"@chainlink/contracts/src/v0.8/shared/interfaces/LinkTokenInterface.sol\\\";\\nimport { AggregatorV3Interface } from \\\"@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol\\\";\\n\\ncontract TrojanHorse is UUPSUpgradeable, Ownable2StepUpgradeable {\\n struct TrajonHorseStorage {\\n IRouterClient router;\\n AggregatorV3Interface aggregator;\\n uint64 destinationChainSelector;\\n address receiver;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"battleoflayers.storage.trajonhorse\\\")) - 1)) & ~ bytes32(uint256(0xff))\\n //\\n bytes32 private constant TrajanHorseStorageLocation =\\n 0xe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00;\\n\\n // Event emitted when a message is sent to another chain.\\n event HorseSent( // The unique ID of the CCIP message.\\n bytes32 indexed messageId, uint256 soldierAmount, uint256 fees);\\n\\n error NotEnoughBalance();\\n\\n function _getTrajanHorseStorage() internal pure returns (TrajonHorseStorage storage $) {\\n assembly {\\n $.slot := TrajanHorseStorageLocation\\n }\\n }\\n\\n function initialize(\\n address owner_,\\n address router_,\\n address aggregator_,\\n uint256 chainSelector_,\\n address receiver_\\n )\\n external\\n initializer\\n {\\n _transferOwnership(owner_);\\n\\n TrajonHorseStorage storage $ = _getTrajanHorseStorage();\\n $.router = IRouterClient(router_);\\n $.aggregator = AggregatorV3Interface(aggregator_);\\n $.destinationChainSelector = uint64(chainSelector_);\\n $.receiver = receiver_;\\n }\\n\\n // only owner can upgrade\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner { }\\n\\n // function\\n\\n /// @notice Sends data to receiver on the destination chain.\\n /// @return messageId The ID of the message that was sent.\\n function sendHorse(uint256 fundForSoldiers) external payable onlyOwner returns (bytes32 messageId) {\\n (, int256 answer,,,) = _getTrajanHorseStorage().aggregator.latestRoundData();\\n uint8 decimal = _getTrajanHorseStorage().aggregator.decimals();\\n uint256 soldierAmount = fundForSoldiers * uint256(answer) / (10 ** decimal * 1 ether);\\n\\n address receiver = _getTrajanHorseStorage().receiver;\\n uint64 destinationChainSelector = _getTrajanHorseStorage().destinationChainSelector;\\n\\n // encode data\\n bytes memory data = abi.encode(block.chainid, soldierAmount);\\n\\n // Create an EVM2AnyMessage struct in memory with necessary information for sending a cross-chain message\\n Client.EVM2AnyMessage memory evm2AnyMessage = Client.EVM2AnyMessage({\\n receiver: abi.encode(receiver), // ABI-encoded\\n data: data, // ABI-encoded string\\n tokenAmounts: new Client.EVMTokenAmount[](0), // Empty array indicating no tokens are being sent\\n extraArgs: Client._argsToBytes(\\n // Additional arguments, setting gas limit\\n Client.EVMExtraArgsV1({ gasLimit: 200_000 })\\n ),\\n // Set the feeToken address, use native token\\n feeToken: address(0)\\n });\\n\\n // Get the fee required to send the message\\n uint256 fees = _getTrajanHorseStorage().router.getFee(destinationChainSelector, evm2AnyMessage);\\n\\n if (msg.value - fundForSoldiers < fees) {\\n revert NotEnoughBalance();\\n }\\n\\n // Send the message through the router and store the returned message ID\\n messageId = _getTrajanHorseStorage().router.ccipSend{ value: fees }(destinationChainSelector, evm2AnyMessage);\\n\\n // Emit an event with message details\\n emit HorseSent(messageId, soldierAmount, fees);\\n\\n // Return the message ID\\n return messageId;\\n }\\n\\n function getFee(uint256 fundForSoldiers) public view returns (uint256 fees, uint256 soldierAmount) {\\n (, int256 answer,,,) = _getTrajanHorseStorage().aggregator.latestRoundData();\\n uint8 decimal = _getTrajanHorseStorage().aggregator.decimals();\\n soldierAmount = fundForSoldiers * uint256(answer) / (10 ** decimal * 1 ether);\\n\\n address receiver = _getTrajanHorseStorage().receiver;\\n uint64 destinationChainSelector = _getTrajanHorseStorage().destinationChainSelector;\\n\\n // encode data\\n bytes memory data = abi.encode(block.chainid, soldierAmount);\\n\\n // Create an EVM2AnyMessage struct in memory with necessary information for sending a cross-chain message\\n Client.EVM2AnyMessage memory evm2AnyMessage = Client.EVM2AnyMessage({\\n receiver: abi.encode(receiver), // ABI-encoded\\n data: data, // ABI-encoded string\\n tokenAmounts: new Client.EVMTokenAmount[](0), // Empty array indicating no tokens are being sent\\n extraArgs: Client._argsToBytes(\\n // Additional arguments, setting gas limit\\n Client.EVMExtraArgsV1({ gasLimit: 200_000 })\\n ),\\n // Set the feeToken address, use native token\\n feeToken: address(0)\\n });\\n\\n // Get the fee required to send the message\\n fees = _getTrajanHorseStorage().router.getFee(destinationChainSelector, evm2AnyMessage);\\n }\\n}\\n\",\"keccak256\":\"0x5b64ab80ba7dfcf5e7ecf203ca6c746d62740c92b7190db91a93f4587f7b6155\",\"license\":\"UNLICENSED\"}},\"version\":1}",
+ "bytecode": "0x60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff16815250348015604257600080fd5b5060805161244961006c60003960008181610f6d01528181610fc2015261117d01526124496000f3fe60806040526004361061009c5760003560e01c806379ba50971161006457806379ba5097146101585780638da5cb5b1461016f578063ad3cb1cc1461019a578063e30c3978146101c5578063f2fde38b146101f0578063fcee45f4146102195761009c565b80634f1ef286146100a157806352d1902d146100bd578063530b97a4146100e8578063715018a61461011157806374af8ff514610128575b600080fd5b6100bb60048036038101906100b691906119e5565b610257565b005b3480156100c957600080fd5b506100d2610276565b6040516100df9190611a5a565b60405180910390f35b3480156100f457600080fd5b5061010f600480360381019061010a9190611aab565b6102a9565b005b34801561011d57600080fd5b5061012661053d565b005b610142600480360381019061013d9190611b26565b610551565b60405161014f9190611a5a565b60405180910390f35b34801561016457600080fd5b5061016d610a00565b005b34801561017b57600080fd5b50610184610a8f565b6040516101919190611b62565b60405180910390f35b3480156101a657600080fd5b506101af610ac7565b6040516101bc9190611bfc565b60405180910390f35b3480156101d157600080fd5b506101da610b00565b6040516101e79190611b62565b60405180910390f35b3480156101fc57600080fd5b5061021760048036038101906102129190611c1e565b610b38565b005b34801561022557600080fd5b50610240600480360381019061023b9190611b26565b610bf4565b60405161024e929190611c5a565b60405180910390f35b61025f610f6b565b61026882611051565b610272828261105c565b5050565b600061028061117b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b60006102b3611202565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156103015750825b9050600060018367ffffffffffffffff16148015610336575060003073ffffffffffffffffffffffffffffffffffffffff163b145b905081158015610344575080155b1561037b576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156103cb5760018560000160086101000a81548160ff0219169083151502179055505b6103d48a61122a565b60006103de61126a565b9050898160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550888160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550878160010160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550868160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505083156105315760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516105289190611cdc565b60405180910390a15b50505050505050505050565b610545611292565b61054f600061122a565b565b600061055b611292565b600061056561126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156105d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f79190611d84565b505050915050600061060761126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610675573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106999190611e38565b90506000670de0b6b3a764000082600a6106b39190611fc7565b6106bd9190612012565b83866106c99190612012565b6106d39190612083565b905060006106df61126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600061070f61126a565b60010160149054906101000a900467ffffffffffffffff1690506000468460405160200161073e929190611c5a565b604051602081830303815290604052905060006040518060a001604052808560405160200161076d9190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff8111156107a2576107a16118ba565b5b6040519080825280602002602001820160405280156107db57816020015b6107c86117fd565b8152602001906001900390816107c05790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610818604051806020016040528062030d40815250611319565b8152509050600061082761126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded85846040518363ffffffff1660e01b815260040161088592919061229f565b602060405180830381865afa1580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c691906122cf565b9050808a346108d591906122fc565b101561090d576040517fad3a8b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61091561126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166396f4e9f98286856040518463ffffffff1660e01b815260040161097492919061229f565b60206040518083038185885af1158015610992573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906109b7919061235c565b9850887faf4d8a84b234410af70315b833c476a761b33559f391cf26d8f3bf7baa5f12ee87836040516109eb929190611c5a565b60405180910390a25050505050505050919050565b6000610a0a611398565b90508073ffffffffffffffffffffffffffffffffffffffff16610a2b610b00565b73ffffffffffffffffffffffffffffffffffffffff1614610a8357806040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a7a9190611b62565b60405180910390fd5b610a8c8161122a565b50565b600080610a9a6113a0565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b600080610b0b6113c8565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b610b40611292565b6000610b4a6113c8565b9050818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff16610bae610a8f565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b6000806000610c0161126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c939190611d84565b5050509150506000610ca361126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d359190611e38565b9050670de0b6b3a764000081600a610d4d9190611fc7565b610d579190612012565b8286610d639190612012565b610d6d9190612083565b92506000610d7961126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000610da961126a565b60010160149054906101000a900467ffffffffffffffff16905060004686604051602001610dd8929190611c5a565b604051602081830303815290604052905060006040518060a0016040528085604051602001610e079190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff811115610e3c57610e3b6118ba565b5b604051908082528060200260200182016040528015610e7557816020015b610e626117fd565b815260200190600190039081610e5a5790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610eb2604051806020016040528062030d40815250611319565b8152509050610ebf61126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded84836040518363ffffffff1660e01b8152600401610f1d92919061229f565b602060405180830381865afa158015610f3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5e91906122cf565b9750505050505050915091565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148061101857507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610fff6113f0565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561104f576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b611059611292565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156110c457506040513d601f19601f820116820180604052508101906110c1919061235c565b60015b61110557816040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016110fc9190611b62565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b811461116c57806040517faa1d49a40000000000000000000000000000000000000000000000000000000081526004016111639190611a5a565b60405180910390fd5b6111768383611447565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614611200576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b60006112346113c8565b90508060000160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055611266826114ba565b5050565b60007fe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00905090565b61129a611398565b73ffffffffffffffffffffffffffffffffffffffff166112b8610a8f565b73ffffffffffffffffffffffffffffffffffffffff1614611317576112db611398565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161130e9190611b62565b60405180910390fd5b565b60606397a657c960e01b8260405160240161133491906123a5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b600033905090565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b60007f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00905090565b600061141e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114508261159b565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a26000815111156114ad576114a78282611668565b506114b6565b6114b56116ec565b5b5050565b60006114c46113a0565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036115f757806040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016115ee9190611b62565b60405180910390fd5b806116247f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff168460405161169291906123fc565b600060405180830381855af49150503d80600081146116cd576040519150601f19603f3d011682016040523d82523d6000602084013e6116d2565b606091505b50915091506116e2858383611729565b9250505092915050565b6000341115611727576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608261173e57611739826117b8565b6117b0565b60008251148015611766575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156117a857836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161179f9190611b62565b60405180910390fd5b8190506117b1565b5b9392505050565b6000815111156117cb5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061186c82611841565b9050919050565b61187c81611861565b811461188757600080fd5b50565b60008135905061189981611873565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6118f2826118a9565b810181811067ffffffffffffffff82111715611911576119106118ba565b5b80604052505050565b600061192461182d565b905061193082826118e9565b919050565b600067ffffffffffffffff8211156119505761194f6118ba565b5b611959826118a9565b9050602081019050919050565b82818337600083830152505050565b600061198861198384611935565b61191a565b9050828152602081018484840111156119a4576119a36118a4565b5b6119af848285611966565b509392505050565b600082601f8301126119cc576119cb61189f565b5b81356119dc848260208601611975565b91505092915050565b600080604083850312156119fc576119fb611837565b5b6000611a0a8582860161188a565b925050602083013567ffffffffffffffff811115611a2b57611a2a61183c565b5b611a37858286016119b7565b9150509250929050565b6000819050919050565b611a5481611a41565b82525050565b6000602082019050611a6f6000830184611a4b565b92915050565b6000819050919050565b611a8881611a75565b8114611a9357600080fd5b50565b600081359050611aa581611a7f565b92915050565b600080600080600060a08688031215611ac757611ac6611837565b5b6000611ad58882890161188a565b9550506020611ae68882890161188a565b9450506040611af78882890161188a565b9350506060611b0888828901611a96565b9250506080611b198882890161188a565b9150509295509295909350565b600060208284031215611b3c57611b3b611837565b5b6000611b4a84828501611a96565b91505092915050565b611b5c81611861565b82525050565b6000602082019050611b776000830184611b53565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611bb7578082015181840152602081019050611b9c565b60008484015250505050565b6000611bce82611b7d565b611bd88185611b88565b9350611be8818560208601611b99565b611bf1816118a9565b840191505092915050565b60006020820190508181036000830152611c168184611bc3565b905092915050565b600060208284031215611c3457611c33611837565b5b6000611c428482850161188a565b91505092915050565b611c5481611a75565b82525050565b6000604082019050611c6f6000830185611c4b565b611c7c6020830184611c4b565b9392505050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b6000611cc6611cc1611cbc84611c83565b611ca1565b611c8d565b9050919050565b611cd681611cab565b82525050565b6000602082019050611cf16000830184611ccd565b92915050565b600069ffffffffffffffffffff82169050919050565b611d1681611cf7565b8114611d2157600080fd5b50565b600081519050611d3381611d0d565b92915050565b6000819050919050565b611d4c81611d39565b8114611d5757600080fd5b50565b600081519050611d6981611d43565b92915050565b600081519050611d7e81611a7f565b92915050565b600080600080600060a08688031215611da057611d9f611837565b5b6000611dae88828901611d24565b9550506020611dbf88828901611d5a565b9450506040611dd088828901611d6f565b9350506060611de188828901611d6f565b9250506080611df288828901611d24565b9150509295509295909350565b600060ff82169050919050565b611e1581611dff565b8114611e2057600080fd5b50565b600081519050611e3281611e0c565b92915050565b600060208284031215611e4e57611e4d611837565b5b6000611e5c84828501611e23565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611eeb57808604811115611ec757611ec6611e65565b5b6001851615611ed65780820291505b8081029050611ee485611e94565b9450611eab565b94509492505050565b600082611f045760019050611fc0565b81611f125760009050611fc0565b8160018114611f285760028114611f3257611f61565b6001915050611fc0565b60ff841115611f4457611f43611e65565b5b8360020a915084821115611f5b57611f5a611e65565b5b50611fc0565b5060208310610133831016604e8410600b8410161715611f965782820a905083811115611f9157611f90611e65565b5b611fc0565b611fa38484846001611ea1565b92509050818404811115611fba57611fb9611e65565b5b81810290505b9392505050565b6000611fd282611a75565b9150611fdd83611dff565b925061200a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611ef4565b905092915050565b600061201d82611a75565b915061202883611a75565b925082820261203681611a75565b9150828204841483151761204d5761204c611e65565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061208e82611a75565b915061209983611a75565b9250826120a9576120a8612054565b5b828204905092915050565b6120bd81611c8d565b82525050565b600081519050919050565b600082825260208201905092915050565b60006120ea826120c3565b6120f481856120ce565b9350612104818560208601611b99565b61210d816118a9565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61214d81611861565b82525050565b61215c81611a75565b82525050565b6040820160008201516121786000850182612144565b50602082015161218b6020850182612153565b50505050565b600061219d8383612162565b60408301905092915050565b6000602082019050919050565b60006121c182612118565b6121cb8185612123565b93506121d683612134565b8060005b838110156122075781516121ee8882612191565b97506121f9836121a9565b9250506001810190506121da565b5085935050505092915050565b600060a083016000830151848203600086015261223182826120df565b9150506020830151848203602086015261224b82826120df565b9150506040830151848203604086015261226582826121b6565b915050606083015161227a6060860182612144565b506080830151848203608086015261229282826120df565b9150508091505092915050565b60006040820190506122b460008301856120b4565b81810360208301526122c68184612214565b90509392505050565b6000602082840312156122e5576122e4611837565b5b60006122f384828501611d6f565b91505092915050565b600061230782611a75565b915061231283611a75565b925082820390508181111561232a57612329611e65565b5b92915050565b61233981611a41565b811461234457600080fd5b50565b60008151905061235681612330565b92915050565b60006020828403121561237257612371611837565b5b600061238084828501612347565b91505092915050565b60208201600082015161239f6000850182612153565b50505050565b60006020820190506123ba6000830184612389565b92915050565b600081905092915050565b60006123d6826120c3565b6123e081856123c0565b93506123f0818560208601611b99565b80840191505092915050565b600061240882846123cb565b91508190509291505056fea264697066735822122062284939d8f0beb87eac9511f3cc420ed85a24701ee09e6f5cf06bc1c840945964736f6c63430008190033",
+ "deployedBytecode": "0x60806040526004361061009c5760003560e01c806379ba50971161006457806379ba5097146101585780638da5cb5b1461016f578063ad3cb1cc1461019a578063e30c3978146101c5578063f2fde38b146101f0578063fcee45f4146102195761009c565b80634f1ef286146100a157806352d1902d146100bd578063530b97a4146100e8578063715018a61461011157806374af8ff514610128575b600080fd5b6100bb60048036038101906100b691906119e5565b610257565b005b3480156100c957600080fd5b506100d2610276565b6040516100df9190611a5a565b60405180910390f35b3480156100f457600080fd5b5061010f600480360381019061010a9190611aab565b6102a9565b005b34801561011d57600080fd5b5061012661053d565b005b610142600480360381019061013d9190611b26565b610551565b60405161014f9190611a5a565b60405180910390f35b34801561016457600080fd5b5061016d610a00565b005b34801561017b57600080fd5b50610184610a8f565b6040516101919190611b62565b60405180910390f35b3480156101a657600080fd5b506101af610ac7565b6040516101bc9190611bfc565b60405180910390f35b3480156101d157600080fd5b506101da610b00565b6040516101e79190611b62565b60405180910390f35b3480156101fc57600080fd5b5061021760048036038101906102129190611c1e565b610b38565b005b34801561022557600080fd5b50610240600480360381019061023b9190611b26565b610bf4565b60405161024e929190611c5a565b60405180910390f35b61025f610f6b565b61026882611051565b610272828261105c565b5050565b600061028061117b565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b60006102b3611202565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156103015750825b9050600060018367ffffffffffffffff16148015610336575060003073ffffffffffffffffffffffffffffffffffffffff163b145b905081158015610344575080155b1561037b576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156103cb5760018560000160086101000a81548160ff0219169083151502179055505b6103d48a61122a565b60006103de61126a565b9050898160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550888160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550878160010160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550868160020160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505083156105315760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516105289190611cdc565b60405180910390a15b50505050505050505050565b610545611292565b61054f600061122a565b565b600061055b611292565b600061056561126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156105d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105f79190611d84565b505050915050600061060761126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610675573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106999190611e38565b90506000670de0b6b3a764000082600a6106b39190611fc7565b6106bd9190612012565b83866106c99190612012565b6106d39190612083565b905060006106df61126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600061070f61126a565b60010160149054906101000a900467ffffffffffffffff1690506000468460405160200161073e929190611c5a565b604051602081830303815290604052905060006040518060a001604052808560405160200161076d9190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff8111156107a2576107a16118ba565b5b6040519080825280602002602001820160405280156107db57816020015b6107c86117fd565b8152602001906001900390816107c05790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610818604051806020016040528062030d40815250611319565b8152509050600061082761126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded85846040518363ffffffff1660e01b815260040161088592919061229f565b602060405180830381865afa1580156108a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c691906122cf565b9050808a346108d591906122fc565b101561090d576040517fad3a8b9e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61091561126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166396f4e9f98286856040518463ffffffff1660e01b815260040161097492919061229f565b60206040518083038185885af1158015610992573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906109b7919061235c565b9850887faf4d8a84b234410af70315b833c476a761b33559f391cf26d8f3bf7baa5f12ee87836040516109eb929190611c5a565b60405180910390a25050505050505050919050565b6000610a0a611398565b90508073ffffffffffffffffffffffffffffffffffffffff16610a2b610b00565b73ffffffffffffffffffffffffffffffffffffffff1614610a8357806040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610a7a9190611b62565b60405180910390fd5b610a8c8161122a565b50565b600080610a9a6113a0565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b600080610b0b6113c8565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b610b40611292565b6000610b4a6113c8565b9050818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff16610bae610a8f565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b6000806000610c0161126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663feaf968c6040518163ffffffff1660e01b815260040160a060405180830381865afa158015610c6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c939190611d84565b5050509150506000610ca361126a565b60010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015610d11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d359190611e38565b9050670de0b6b3a764000081600a610d4d9190611fc7565b610d579190612012565b8286610d639190612012565b610d6d9190612083565b92506000610d7961126a565b60020160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000610da961126a565b60010160149054906101000a900467ffffffffffffffff16905060004686604051602001610dd8929190611c5a565b604051602081830303815290604052905060006040518060a0016040528085604051602001610e079190611b62565b6040516020818303038152906040528152602001838152602001600067ffffffffffffffff811115610e3c57610e3b6118ba565b5b604051908082528060200260200182016040528015610e7557816020015b610e626117fd565b815260200190600190039081610e5a5790505b508152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001610eb2604051806020016040528062030d40815250611319565b8152509050610ebf61126a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166320487ded84836040518363ffffffff1660e01b8152600401610f1d92919061229f565b602060405180830381865afa158015610f3a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f5e91906122cf565b9750505050505050915091565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff16148061101857507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610fff6113f0565b73ffffffffffffffffffffffffffffffffffffffff1614155b1561104f576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b611059611292565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa9250505080156110c457506040513d601f19601f820116820180604052508101906110c1919061235c565b60015b61110557816040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016110fc9190611b62565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b811461116c57806040517faa1d49a40000000000000000000000000000000000000000000000000000000081526004016111639190611a5a565b60405180910390fd5b6111768383611447565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614611200576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b60006112346113c8565b90508060000160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055611266826114ba565b5050565b60007fe27341574ccce45f37dcd0b599bb3930a0505a29c9f7d7964beef8d73580ce00905090565b61129a611398565b73ffffffffffffffffffffffffffffffffffffffff166112b8610a8f565b73ffffffffffffffffffffffffffffffffffffffff1614611317576112db611398565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161130e9190611b62565b60405180910390fd5b565b60606397a657c960e01b8260405160240161133491906123a5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050919050565b600033905090565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b60007f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00905090565b600061141e7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6114508261159b565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a26000815111156114ad576114a78282611668565b506114b6565b6114b56116ec565b5b5050565b60006114c46113a0565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036115f757806040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016115ee9190611b62565b60405180910390fd5b806116247f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b611591565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff168460405161169291906123fc565b600060405180830381855af49150503d80600081146116cd576040519150601f19603f3d011682016040523d82523d6000602084013e6116d2565b606091505b50915091506116e2858383611729565b9250505092915050565b6000341115611727576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608261173e57611739826117b8565b6117b0565b60008251148015611766575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156117a857836040517f9996b31500000000000000000000000000000000000000000000000000000000815260040161179f9190611b62565b60405180910390fd5b8190506117b1565b5b9392505050565b6000815111156117cb5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b6000604051905090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061186c82611841565b9050919050565b61187c81611861565b811461188757600080fd5b50565b60008135905061189981611873565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6118f2826118a9565b810181811067ffffffffffffffff82111715611911576119106118ba565b5b80604052505050565b600061192461182d565b905061193082826118e9565b919050565b600067ffffffffffffffff8211156119505761194f6118ba565b5b611959826118a9565b9050602081019050919050565b82818337600083830152505050565b600061198861198384611935565b61191a565b9050828152602081018484840111156119a4576119a36118a4565b5b6119af848285611966565b509392505050565b600082601f8301126119cc576119cb61189f565b5b81356119dc848260208601611975565b91505092915050565b600080604083850312156119fc576119fb611837565b5b6000611a0a8582860161188a565b925050602083013567ffffffffffffffff811115611a2b57611a2a61183c565b5b611a37858286016119b7565b9150509250929050565b6000819050919050565b611a5481611a41565b82525050565b6000602082019050611a6f6000830184611a4b565b92915050565b6000819050919050565b611a8881611a75565b8114611a9357600080fd5b50565b600081359050611aa581611a7f565b92915050565b600080600080600060a08688031215611ac757611ac6611837565b5b6000611ad58882890161188a565b9550506020611ae68882890161188a565b9450506040611af78882890161188a565b9350506060611b0888828901611a96565b9250506080611b198882890161188a565b9150509295509295909350565b600060208284031215611b3c57611b3b611837565b5b6000611b4a84828501611a96565b91505092915050565b611b5c81611861565b82525050565b6000602082019050611b776000830184611b53565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611bb7578082015181840152602081019050611b9c565b60008484015250505050565b6000611bce82611b7d565b611bd88185611b88565b9350611be8818560208601611b99565b611bf1816118a9565b840191505092915050565b60006020820190508181036000830152611c168184611bc3565b905092915050565b600060208284031215611c3457611c33611837565b5b6000611c428482850161188a565b91505092915050565b611c5481611a75565b82525050565b6000604082019050611c6f6000830185611c4b565b611c7c6020830184611c4b565b9392505050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b6000611cc6611cc1611cbc84611c83565b611ca1565b611c8d565b9050919050565b611cd681611cab565b82525050565b6000602082019050611cf16000830184611ccd565b92915050565b600069ffffffffffffffffffff82169050919050565b611d1681611cf7565b8114611d2157600080fd5b50565b600081519050611d3381611d0d565b92915050565b6000819050919050565b611d4c81611d39565b8114611d5757600080fd5b50565b600081519050611d6981611d43565b92915050565b600081519050611d7e81611a7f565b92915050565b600080600080600060a08688031215611da057611d9f611837565b5b6000611dae88828901611d24565b9550506020611dbf88828901611d5a565b9450506040611dd088828901611d6f565b9350506060611de188828901611d6f565b9250506080611df288828901611d24565b9150509295509295909350565b600060ff82169050919050565b611e1581611dff565b8114611e2057600080fd5b50565b600081519050611e3281611e0c565b92915050565b600060208284031215611e4e57611e4d611837565b5b6000611e5c84828501611e23565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008160011c9050919050565b6000808291508390505b6001851115611eeb57808604811115611ec757611ec6611e65565b5b6001851615611ed65780820291505b8081029050611ee485611e94565b9450611eab565b94509492505050565b600082611f045760019050611fc0565b81611f125760009050611fc0565b8160018114611f285760028114611f3257611f61565b6001915050611fc0565b60ff841115611f4457611f43611e65565b5b8360020a915084821115611f5b57611f5a611e65565b5b50611fc0565b5060208310610133831016604e8410600b8410161715611f965782820a905083811115611f9157611f90611e65565b5b611fc0565b611fa38484846001611ea1565b92509050818404811115611fba57611fb9611e65565b5b81810290505b9392505050565b6000611fd282611a75565b9150611fdd83611dff565b925061200a7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8484611ef4565b905092915050565b600061201d82611a75565b915061202883611a75565b925082820261203681611a75565b9150828204841483151761204d5761204c611e65565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061208e82611a75565b915061209983611a75565b9250826120a9576120a8612054565b5b828204905092915050565b6120bd81611c8d565b82525050565b600081519050919050565b600082825260208201905092915050565b60006120ea826120c3565b6120f481856120ce565b9350612104818560208601611b99565b61210d816118a9565b840191505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61214d81611861565b82525050565b61215c81611a75565b82525050565b6040820160008201516121786000850182612144565b50602082015161218b6020850182612153565b50505050565b600061219d8383612162565b60408301905092915050565b6000602082019050919050565b60006121c182612118565b6121cb8185612123565b93506121d683612134565b8060005b838110156122075781516121ee8882612191565b97506121f9836121a9565b9250506001810190506121da565b5085935050505092915050565b600060a083016000830151848203600086015261223182826120df565b9150506020830151848203602086015261224b82826120df565b9150506040830151848203604086015261226582826121b6565b915050606083015161227a6060860182612144565b506080830151848203608086015261229282826120df565b9150508091505092915050565b60006040820190506122b460008301856120b4565b81810360208301526122c68184612214565b90509392505050565b6000602082840312156122e5576122e4611837565b5b60006122f384828501611d6f565b91505092915050565b600061230782611a75565b915061231283611a75565b925082820390508181111561232a57612329611e65565b5b92915050565b61233981611a41565b811461234457600080fd5b50565b60008151905061235681612330565b92915050565b60006020828403121561237257612371611837565b5b600061238084828501612347565b91505092915050565b60208201600082015161239f6000850182612153565b50505050565b60006020820190506123ba6000830184612389565b92915050565b600081905092915050565b60006123d6826120c3565b6123e081856123c0565b93506123f0818560208601611b99565b80840191505092915050565b600061240882846123cb565b91508190509291505056fea264697066735822122062284939d8f0beb87eac9511f3cc420ed85a24701ee09e6f5cf06bc1c840945964736f6c63430008190033",
+ "devdoc": {
+ "errors": {
+ "AddressEmptyCode(address)": [
+ {
+ "details": "There's no code at `target` (it is not a contract)."
+ }
+ ],
+ "ERC1967InvalidImplementation(address)": [
+ {
+ "details": "The `implementation` of the proxy is invalid."
+ }
+ ],
+ "ERC1967NonPayable()": [
+ {
+ "details": "An upgrade function sees `msg.value > 0` that may be lost."
+ }
+ ],
+ "FailedInnerCall()": [
+ {
+ "details": "A call to an address target failed. The target may have reverted."
+ }
+ ],
+ "InvalidInitialization()": [
+ {
+ "details": "The contract is already initialized."
+ }
+ ],
+ "NotInitializing()": [
+ {
+ "details": "The contract is not initializing."
+ }
+ ],
+ "OwnableInvalidOwner(address)": [
+ {
+ "details": "The owner is not a valid owner account. (eg. `address(0)`)"
+ }
+ ],
+ "OwnableUnauthorizedAccount(address)": [
+ {
+ "details": "The caller account is not authorized to perform an operation."
+ }
+ ],
+ "UUPSUnauthorizedCallContext()": [
+ {
+ "details": "The call is from an unauthorized context."
+ }
+ ],
+ "UUPSUnsupportedProxiableUUID(bytes32)": [
+ {
+ "details": "The storage `slot` is unsupported as a UUID."
+ }
+ ]
+ },
+ "events": {
+ "Initialized(uint64)": {
+ "details": "Triggered when the contract has been initialized or reinitialized."
+ },
+ "Upgraded(address)": {
+ "details": "Emitted when the implementation is upgraded."
+ }
+ },
+ "kind": "dev",
+ "methods": {
+ "acceptOwnership()": {
+ "details": "The new owner accepts the ownership transfer."
+ },
+ "owner()": {
+ "details": "Returns the address of the current owner."
+ },
+ "pendingOwner()": {
+ "details": "Returns the address of the pending owner."
+ },
+ "proxiableUUID()": {
+ "details": "Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier."
+ },
+ "renounceOwnership()": {
+ "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."
+ },
+ "sendHorse(uint256)": {
+ "returns": {
+ "messageId": "The ID of the message that was sent."
+ }
+ },
+ "transferOwnership(address)": {
+ "details": "Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner."
+ },
+ "upgradeToAndCall(address,bytes)": {
+ "custom:oz-upgrades-unsafe-allow-reachable": "delegatecall",
+ "details": "Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event."
+ }
+ },
+ "version": 1
+ },
+ "userdoc": {
+ "kind": "user",
+ "methods": {
+ "sendHorse(uint256)": {
+ "notice": "Sends data to receiver on the destination chain."
+ }
+ },
+ "version": 1
+ },
+ "storageLayout": {
+ "storage": [],
+ "types": null
+ }
+}
\ No newline at end of file
diff --git a/packages/contracts/deployments/op_sepolia/TrajonHorse_Proxy.json b/packages/contracts/deployments/op_sepolia/TrojanHorse_Proxy.json
similarity index 81%
rename from packages/contracts/deployments/op_sepolia/TrajonHorse_Proxy.json
rename to packages/contracts/deployments/op_sepolia/TrojanHorse_Proxy.json
index 8896745..efee72c 100644
--- a/packages/contracts/deployments/op_sepolia/TrajonHorse_Proxy.json
+++ b/packages/contracts/deployments/op_sepolia/TrojanHorse_Proxy.json
@@ -1,5 +1,5 @@
{
- "address": "0xD656FfB0277C75e36147d2fe6d056775ed07C891",
+ "address": "0x70116e215a2188E4D0b2eC8df2f2F44B85e7B9BF",
"abi": [
{
"inputs": [
@@ -71,35 +71,35 @@
"type": "receive"
}
],
- "transactionHash": "0xab3a2debf71c508ebed0d6d9d2362d6508bcf50dae8fa858815800a265c329e0",
+ "transactionHash": "0x024fb1611822297b0cf58da85015c7f18a914b0e83b2e0f4ad74dfeb5bd5fc91",
"receipt": {
"to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
"from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
"contractAddress": null,
"transactionIndex": 1,
"gasUsed": "375147",
- "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000040000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000100800000000000000000000000080000000000000000000000000000000000100000000040000000000000000000000000000000000000000000020000000000080000000000002000000000004000400020000000020000000000000000000000000000000000000000000000000000000000000000000",
- "blockHash": "0x4260b7c5b0b9f96091989a6176f27b4d1c13d5568f493df7cd17455c9cd9c586",
- "transactionHash": "0xab3a2debf71c508ebed0d6d9d2362d6508bcf50dae8fa858815800a265c329e0",
+ "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000000000000800000000020000000000000000000800000000000000000000000000000000400000000000000000000800000000000000000000000080000000000000000000000000000000000100008000000000000000000000000000000000000000000000000020000000040000000000000000000000000004000400020000000020200000000000000000000000000000000000000020000000000000000000200000",
+ "blockHash": "0x5733cbe921cd6cb6ec460993a6656d15299184e5d8299fa4c728bd55ca3048c5",
+ "transactionHash": "0x024fb1611822297b0cf58da85015c7f18a914b0e83b2e0f4ad74dfeb5bd5fc91",
"logs": [
{
"transactionIndex": 1,
- "blockNumber": 10605506,
- "transactionHash": "0xab3a2debf71c508ebed0d6d9d2362d6508bcf50dae8fa858815800a265c329e0",
- "address": "0xD656FfB0277C75e36147d2fe6d056775ed07C891",
+ "blockNumber": 10620198,
+ "transactionHash": "0x024fb1611822297b0cf58da85015c7f18a914b0e83b2e0f4ad74dfeb5bd5fc91",
+ "address": "0x70116e215a2188E4D0b2eC8df2f2F44B85e7B9BF",
"topics": [
"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
- "0x0000000000000000000000000f2446405956d8301972616d81b0ac23d82f638a"
+ "0x00000000000000000000000089ada4046ac5cfd0d1d82bef11b117e4ea31e8a2"
],
"data": "0x",
"logIndex": 0,
- "blockHash": "0x4260b7c5b0b9f96091989a6176f27b4d1c13d5568f493df7cd17455c9cd9c586"
+ "blockHash": "0x5733cbe921cd6cb6ec460993a6656d15299184e5d8299fa4c728bd55ca3048c5"
},
{
"transactionIndex": 1,
- "blockNumber": 10605506,
- "transactionHash": "0xab3a2debf71c508ebed0d6d9d2362d6508bcf50dae8fa858815800a265c329e0",
- "address": "0xD656FfB0277C75e36147d2fe6d056775ed07C891",
+ "blockNumber": 10620198,
+ "transactionHash": "0x024fb1611822297b0cf58da85015c7f18a914b0e83b2e0f4ad74dfeb5bd5fc91",
+ "address": "0x70116e215a2188E4D0b2eC8df2f2F44B85e7B9BF",
"topics": [
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
"0x0000000000000000000000000000000000000000000000000000000000000000",
@@ -107,29 +107,29 @@
],
"data": "0x",
"logIndex": 1,
- "blockHash": "0x4260b7c5b0b9f96091989a6176f27b4d1c13d5568f493df7cd17455c9cd9c586"
+ "blockHash": "0x5733cbe921cd6cb6ec460993a6656d15299184e5d8299fa4c728bd55ca3048c5"
},
{
"transactionIndex": 1,
- "blockNumber": 10605506,
- "transactionHash": "0xab3a2debf71c508ebed0d6d9d2362d6508bcf50dae8fa858815800a265c329e0",
- "address": "0xD656FfB0277C75e36147d2fe6d056775ed07C891",
+ "blockNumber": 10620198,
+ "transactionHash": "0x024fb1611822297b0cf58da85015c7f18a914b0e83b2e0f4ad74dfeb5bd5fc91",
+ "address": "0x70116e215a2188E4D0b2eC8df2f2F44B85e7B9BF",
"topics": [
"0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
"logIndex": 2,
- "blockHash": "0x4260b7c5b0b9f96091989a6176f27b4d1c13d5568f493df7cd17455c9cd9c586"
+ "blockHash": "0x5733cbe921cd6cb6ec460993a6656d15299184e5d8299fa4c728bd55ca3048c5"
}
],
- "blockNumber": 10605506,
+ "blockNumber": 10620198,
"cumulativeGasUsed": "419010",
"status": 1,
"byzantium": true
},
"args": [
- "0x0f2446405956D8301972616D81b0Ac23D82f638A",
- "0x530b97a4000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560000000000000000000000000114a20a10b43d4115e5aeef7345a1a71d2a60c5700000000000000000000000061ec26aa57019c486b10502285c5a3d4a4750ad7000000000000000000000000000000000000000000000000de41ba4fc9d91ad900000000000000000000000060688b3ba8816b4003b72f9b3927c3bb8e598005"
+ "0x89aDa4046aC5cfd0D1d82beF11B117E4Ea31E8a2",
+ "0x530b97a4000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560000000000000000000000000114a20a10b43d4115e5aeef7345a1a71d2a60c5700000000000000000000000061ec26aa57019c486b10502285c5a3d4a4750ad7000000000000000000000000000000000000000000000000de41ba4fc9d91ad900000000000000000000000010d5617ef73e62545f45017a0f85847c081b9fce"
],
"numDeployments": 1,
"bytecode": "0x60806040526040516107353803806107358339810160408190526100229161031e565b61002e82826000610035565b505061043b565b61003e8361006b565b60008251118061004b5750805b156100665761006483836100ab60201b6100291760201c565b505b505050565b610074816100d7565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606100d0838360405180606001604052806027815260200161070e602791396101a9565b9392505050565b6100ea8161022260201b6100551760201c565b6101515760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101887f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61023160201b6100641760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b6060600080856001600160a01b0316856040516101c691906103ec565b600060405180830381855af49150503d8060008114610201576040519150601f19603f3d011682016040523d82523d6000602084013e610206565b606091505b50909250905061021886838387610234565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102a0578251610299576001600160a01b0385163b6102995760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610148565b50816102aa565b6102aa83836102b2565b949350505050565b8151156102c25781518083602001fd5b8060405162461bcd60e51b81526004016101489190610408565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561030d5781810151838201526020016102f5565b838111156100645750506000910152565b6000806040838503121561033157600080fd5b82516001600160a01b038116811461034857600080fd5b60208401519092506001600160401b038082111561036557600080fd5b818501915085601f83011261037957600080fd5b81518181111561038b5761038b6102dc565b604051601f8201601f19908116603f011681019083821181831017156103b3576103b36102dc565b816040528281528860208487010111156103cc57600080fd5b6103dd8360208301602088016102f2565b80955050505050509250929050565b600082516103fe8184602087016102f2565b9190910192915050565b60208152600082518060208401526104278160408501602087016102f2565b601f01601f19169190910160400192915050565b6102c48061044a6000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e8383604051806060016040528060278152602001610268602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b6060600080856001600160a01b0316856040516100e09190610218565b600060405180830381855af49150503d806000811461011b576040519150601f19603f3d011682016040523d82523d6000602084013e610120565b606091505b50915091506101318683838761013b565b9695505050505050565b606083156101ac5782516101a5576001600160a01b0385163b6101a55760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064015b60405180910390fd5b50816101b6565b6101b683836101be565b949350505050565b8151156101ce5781518083602001fd5b8060405162461bcd60e51b815260040161019c9190610234565b60005b838110156102035781810151838201526020016101eb565b83811115610212576000848401525b50505050565b6000825161022a8184602087016101e8565b9190910192915050565b60208152600082518060208401526102538160408501602087016101e8565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a2646970667358221220ff8e6f2d761d58b3bd984933269e01a7ff1f70a460b808056daa4cff1ee8ab6964736f6c63430008090033416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564",
diff --git a/packages/contracts/deployments/sepolia/Troy.json b/packages/contracts/deployments/sepolia/Troy.json
index 5de110c..d9d116f 100644
--- a/packages/contracts/deployments/sepolia/Troy.json
+++ b/packages/contracts/deployments/sepolia/Troy.json
@@ -1,5 +1,5 @@
{
- "address": "0x60688B3bA8816B4003B72f9b3927c3Bb8E598005",
+ "address": "0x10d5617ef73E62545F45017A0F85847c081b9fcE",
"abi": [
{
"anonymous": false,
@@ -381,6 +381,31 @@
"stateMutability": "view",
"type": "function"
},
+ {
+ "inputs": [],
+ "name": "readStorageValue",
+ "outputs": [
+ {
+ "components": [
+ {
+ "internalType": "uint256",
+ "name": "championChainId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ }
+ ],
+ "internalType": "struct Troy.TroyStorage",
+ "name": "",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
{
"inputs": [],
"name": "renounceOwnership",
@@ -455,64 +480,64 @@
"type": "constructor"
}
],
- "transactionHash": "0x170501cd04790ec32913e2296585170d689c07dbdbf531980ca1898a29bd2eb8",
+ "transactionHash": "0x50889835c8585e2070ce94f7809b6c949cc3cbb86b2baa920f0ccb9b1b0d12a0",
"receipt": {
"to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
"from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
"contractAddress": null,
- "transactionIndex": 24,
- "gasUsed": "328444",
- "logsBloom": "0x00000000000000000000000000000000400020000000000000800000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000800000000000000000000000080000000000000000000000000000000000100000000000000000000000000000000000000000000000000000020000000000000000000000000000000000014000400020000000020000000000000000800020000000000000000000000000000000000000002000000",
- "blockHash": "0xafecf8587b06ac49aac0ca5930fffeead4d22c9fd8ed07149f3c7a47761aae09",
- "transactionHash": "0x170501cd04790ec32913e2296585170d689c07dbdbf531980ca1898a29bd2eb8",
+ "transactionIndex": 38,
+ "gasUsed": "328456",
+ "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100002000001000000000000000000000000000000080000020000000000000000000800000000000000000000000000000000400000000000000000000800000000000000000000000080000000040200000000000000000000000100000000000000000000000000000000000000000000000000000020008000000000000000000000000000000004000400020000000020000000000000000000000000000001000000000000000000000000000000000000",
+ "blockHash": "0xf6a23e0be2b14a0e4d4be339472640e8cc73330fd6ed8553c5c92eace0823208",
+ "transactionHash": "0x50889835c8585e2070ce94f7809b6c949cc3cbb86b2baa920f0ccb9b1b0d12a0",
"logs": [
{
- "transactionIndex": 24,
- "blockNumber": 5689210,
- "transactionHash": "0x170501cd04790ec32913e2296585170d689c07dbdbf531980ca1898a29bd2eb8",
- "address": "0x60688B3bA8816B4003B72f9b3927c3Bb8E598005",
+ "transactionIndex": 38,
+ "blockNumber": 5691716,
+ "transactionHash": "0x50889835c8585e2070ce94f7809b6c949cc3cbb86b2baa920f0ccb9b1b0d12a0",
+ "address": "0x10d5617ef73E62545F45017A0F85847c081b9fcE",
"topics": [
"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
- "0x000000000000000000000000204504a8bcebc5a30789d99e20a4a84e55bb10c7"
+ "0x0000000000000000000000002b4899c7316cc7d15301dbd0a5d7204456d3b441"
],
"data": "0x",
- "logIndex": 12,
- "blockHash": "0xafecf8587b06ac49aac0ca5930fffeead4d22c9fd8ed07149f3c7a47761aae09"
+ "logIndex": 34,
+ "blockHash": "0xf6a23e0be2b14a0e4d4be339472640e8cc73330fd6ed8553c5c92eace0823208"
},
{
- "transactionIndex": 24,
- "blockNumber": 5689210,
- "transactionHash": "0x170501cd04790ec32913e2296585170d689c07dbdbf531980ca1898a29bd2eb8",
- "address": "0x60688B3bA8816B4003B72f9b3927c3Bb8E598005",
+ "transactionIndex": 38,
+ "blockNumber": 5691716,
+ "transactionHash": "0x50889835c8585e2070ce94f7809b6c949cc3cbb86b2baa920f0ccb9b1b0d12a0",
+ "address": "0x10d5617ef73E62545F45017A0F85847c081b9fcE",
"topics": [
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560"
],
"data": "0x",
- "logIndex": 13,
- "blockHash": "0xafecf8587b06ac49aac0ca5930fffeead4d22c9fd8ed07149f3c7a47761aae09"
+ "logIndex": 35,
+ "blockHash": "0xf6a23e0be2b14a0e4d4be339472640e8cc73330fd6ed8553c5c92eace0823208"
},
{
- "transactionIndex": 24,
- "blockNumber": 5689210,
- "transactionHash": "0x170501cd04790ec32913e2296585170d689c07dbdbf531980ca1898a29bd2eb8",
- "address": "0x60688B3bA8816B4003B72f9b3927c3Bb8E598005",
+ "transactionIndex": 38,
+ "blockNumber": 5691716,
+ "transactionHash": "0x50889835c8585e2070ce94f7809b6c949cc3cbb86b2baa920f0ccb9b1b0d12a0",
+ "address": "0x10d5617ef73E62545F45017A0F85847c081b9fcE",
"topics": [
"0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
- "logIndex": 14,
- "blockHash": "0xafecf8587b06ac49aac0ca5930fffeead4d22c9fd8ed07149f3c7a47761aae09"
+ "logIndex": 36,
+ "blockHash": "0xf6a23e0be2b14a0e4d4be339472640e8cc73330fd6ed8553c5c92eace0823208"
}
],
- "blockNumber": 5689210,
- "cumulativeGasUsed": "2552455",
+ "blockNumber": 5691716,
+ "cumulativeGasUsed": "6921836",
"status": 1,
"byzantium": true
},
"args": [
- "0x204504A8BceBc5a30789D99E20A4a84e55BB10c7",
+ "0x2B4899c7316cc7d15301dbD0A5D7204456D3B441",
"0x485cc955000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb05600000000000000000000000000bf3de8c5d3e8a2b34d2beeb17abfcebaf363a59"
],
"numDeployments": 1,
@@ -525,5 +550,5 @@
"0x0BF3dE8c5D3e8A2B34D2BEeB17ABfCeBaf363A59"
]
},
- "implementation": "0x204504A8BceBc5a30789D99E20A4a84e55BB10c7"
+ "implementation": "0x2B4899c7316cc7d15301dbD0A5D7204456D3B441"
}
\ No newline at end of file
diff --git a/packages/contracts/deployments/sepolia/Troy_Implementation.json b/packages/contracts/deployments/sepolia/Troy_Implementation.json
index 37e2cfa..af1c775 100644
--- a/packages/contracts/deployments/sepolia/Troy_Implementation.json
+++ b/packages/contracts/deployments/sepolia/Troy_Implementation.json
@@ -1,5 +1,5 @@
{
- "address": "0x204504A8BceBc5a30789D99E20A4a84e55BB10c7",
+ "address": "0x2B4899c7316cc7d15301dbD0A5D7204456D3B441",
"abi": [
{
"inputs": [
@@ -341,6 +341,31 @@
"stateMutability": "view",
"type": "function"
},
+ {
+ "inputs": [],
+ "name": "readStorageValue",
+ "outputs": [
+ {
+ "components": [
+ {
+ "internalType": "uint256",
+ "name": "championChainId",
+ "type": "uint256"
+ },
+ {
+ "internalType": "uint256",
+ "name": "soldierAmount",
+ "type": "uint256"
+ }
+ ],
+ "internalType": "struct Troy.TroyStorage",
+ "name": "",
+ "type": "tuple"
+ }
+ ],
+ "stateMutability": "view",
+ "type": "function"
+ },
{
"inputs": [],
"name": "renounceOwnership",
@@ -401,10 +426,10 @@
],
"args": [],
"numDeployments": 1,
- "solcInputHash": "e59bac4a506b824d374b05560553bdaf",
- "metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ERC1967InvalidImplementation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC1967NonPayable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedInnerCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"router\",\"type\":\"address\"}],\"name\":\"InvalidRouter\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UUPSUnauthorizedCallContext\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"slot\",\"type\":\"bytes32\"}],\"name\":\"UUPSUnsupportedProxiableUUID\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"initChampion\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"initAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"laterChainpion\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"laterAmount\",\"type\":\"uint256\"}],\"name\":\"SoldiersArrive\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"UPGRADE_INTERFACE_VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"sourceChainSelector\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"sender\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"struct Client.EVMTokenAmount[]\",\"name\":\"destTokenAmounts\",\"type\":\"tuple[]\"}],\"internalType\":\"struct Client.Any2EVMMessage\",\"name\":\"message\",\"type\":\"tuple\"}],\"name\":\"ccipReceive\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRouter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"router_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"AddressEmptyCode(address)\":[{\"details\":\"There's no code at `target` (it is not a contract).\"}],\"ERC1967InvalidImplementation(address)\":[{\"details\":\"The `implementation` of the proxy is invalid.\"}],\"ERC1967NonPayable()\":[{\"details\":\"An upgrade function sees `msg.value > 0` that may be lost.\"}],\"FailedInnerCall()\":[{\"details\":\"A call to an address target failed. The target may have reverted.\"}],\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"UUPSUnauthorizedCallContext()\":[{\"details\":\"The call is from an unauthorized context.\"}],\"UUPSUnsupportedProxiableUUID(bytes32)\":[{\"details\":\"The storage `slot` is unsupported as a UUID.\"}]},\"events\":{\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"acceptOwnership()\":{\"details\":\"The new owner accepts the ownership transfer.\"},\"ccipReceive((bytes32,uint64,bytes,bytes,(address,uint256)[]))\":{\"details\":\"Note ensure you check the msg.sender is the OffRampRouter\",\"params\":{\"message\":\"CCIP Message\"}},\"getRouter()\":{\"returns\":{\"_0\":\"CCIP router address\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pendingOwner()\":{\"details\":\"Returns the address of the pending owner.\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"supportsInterface(bytes4)\":{\"details\":\"Should indicate whether the contract implements IAny2EVMMessageReceiver e.g. return interfaceId == type(IAny2EVMMessageReceiver).interfaceId || interfaceId == type(IERC165).interfaceId This allows CCIP to check if ccipReceive is available before calling it. If this returns false or reverts, only tokens are transferred to the receiver. If this returns true, tokens are transferred and ccipReceive is called atomically. Additionally, if the receiver address does not have code associated with it at the time of execution (EXTCODESIZE returns 0), only tokens will be transferred.\",\"params\":{\"interfaceId\":\"The interfaceId to check\"},\"returns\":{\"_0\":\"true if the interfaceId is supported\"}},\"transferOwnership(address)\":{\"details\":\"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"ccipReceive((bytes32,uint64,bytes,bytes,(address,uint256)[]))\":{\"notice\":\"Called by the Router to deliver a message. If this reverts, any token transfers also revert. The message will move to a FAILED state and become available for manual execution.\"},\"getRouter()\":{\"notice\":\"Return the current router\"},\"supportsInterface(bytes4)\":{\"notice\":\"IERC165 supports an interfaceId\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/Troy.sol\":\"Troy\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IAny2EVMMessageReceiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {Client} from \\\"../libraries/Client.sol\\\";\\n\\n/// @notice Application contracts that intend to receive messages from\\n/// the router should implement this interface.\\ninterface IAny2EVMMessageReceiver {\\n /// @notice Called by the Router to deliver a message.\\n /// If this reverts, any token transfers also revert. The message\\n /// will move to a FAILED state and become available for manual execution.\\n /// @param message CCIP Message\\n /// @dev Note ensure you check the msg.sender is the OffRampRouter\\n function ccipReceive(Client.Any2EVMMessage calldata message) external;\\n}\\n\",\"keccak256\":\"0xd2a05a4f58a453cbf8cfa6aa78f58cb8e42091b3a025f711a0aa51f584e16b48\",\"license\":\"MIT\"},\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// End consumer library.\\nlibrary Client {\\n /// @dev RMN depends on this struct, if changing, please notify the RMN maintainers.\\n struct EVMTokenAmount {\\n address token; // token address on the local chain.\\n uint256 amount; // Amount of tokens.\\n }\\n\\n struct Any2EVMMessage {\\n bytes32 messageId; // MessageId corresponding to ccipSend on source.\\n uint64 sourceChainSelector; // Source chain selector.\\n bytes sender; // abi.decode(sender) if coming from an EVM chain.\\n bytes data; // payload sent in original message.\\n EVMTokenAmount[] destTokenAmounts; // Tokens and their amounts in their destination chain representation.\\n }\\n\\n // If extraArgs is empty bytes, the default is 200k gas limit.\\n struct EVM2AnyMessage {\\n bytes receiver; // abi.encode(receiver address) for dest EVM chains\\n bytes data; // Data payload\\n EVMTokenAmount[] tokenAmounts; // Token transfers\\n address feeToken; // Address of feeToken. address(0) means you will send msg.value.\\n bytes extraArgs; // Populate this with _argsToBytes(EVMExtraArgsV1)\\n }\\n\\n // bytes4(keccak256(\\\"CCIP EVMExtraArgsV1\\\"));\\n bytes4 public constant EVM_EXTRA_ARGS_V1_TAG = 0x97a657c9;\\n struct EVMExtraArgsV1 {\\n uint256 gasLimit;\\n }\\n\\n function _argsToBytes(EVMExtraArgsV1 memory extraArgs) internal pure returns (bytes memory bts) {\\n return abi.encodeWithSelector(EVM_EXTRA_ARGS_V1_TAG, extraArgs);\\n }\\n}\\n\",\"keccak256\":\"0x8af3ac1085c87342373772fb1a0107c7b90258e6bfed318ab2a601a14477e679\",\"license\":\"MIT\"},\"@chainlink/contracts-ccip/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\",\"keccak256\":\"0xa36a31b4bb17fad88d023474893b3b895fa421650543b1ce5aefc78efbd43244\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {OwnableUpgradeable} from \\\"./OwnableUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is specified at deployment time in the constructor for `Ownable`. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable2Step\\n struct Ownable2StepStorage {\\n address _pendingOwner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable2Step\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant Ownable2StepStorageLocation = 0x237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00;\\n\\n function _getOwnable2StepStorage() private pure returns (Ownable2StepStorage storage $) {\\n assembly {\\n $.slot := Ownable2StepStorageLocation\\n }\\n }\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n function __Ownable2Step_init() internal onlyInitializing {\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n return $._pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n $._pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n delete $._pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n if (pendingOwner() != sender) {\\n revert OwnableUnauthorizedAccount(sender);\\n }\\n _transferOwnership(sender);\\n }\\n}\\n\",\"keccak256\":\"0xbca4a4f66d98028293dba695851d1b20d3e0ba2fff7453fb241f192fa3fc6b6f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\\\";\\nimport {Initializable} from \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3f13b947637c4969c0644cab4ef399cdc4b67f101463b8775c5a43b118558e53\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set 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(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\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\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"},\"src/CCIPReceiverUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { IAny2EVMMessageReceiver } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IAny2EVMMessageReceiver.sol\\\";\\nimport { Client } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\\\";\\nimport { IERC165 } from\\n \\\"@chainlink/contracts-ccip/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/introspection/IERC165.sol\\\";\\n\\n/// @title CCIPReceiver - Base contract for CCIP applications that can receive messages.\\nabstract contract CCIPReceiverUpgradeable is IAny2EVMMessageReceiver, IERC165 {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable2Step\\n struct CCIPReceiverStorage {\\n address _rounter;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"chainlink.storage.CCIPReceiverUpgradeable\\\")) - 1)) &\\n // ~bytes32(uint256(0xff))\\n bytes32 private constant CCIPReceiverStorageLocation =\\n 0xb9605d6807cee7e996cb505aab0fff682142fb832cd7587ec7f7258d80300000;\\n\\n function _getCCIPReceiverStorage() private pure returns (CCIPReceiverStorage storage $) {\\n assembly {\\n $.slot := CCIPReceiverStorageLocation\\n }\\n }\\n\\n function __CCIPReceiver_init(address router) internal {\\n if (router == address(0)) revert InvalidRouter(address(0));\\n _getCCIPReceiverStorage()._rounter = router;\\n }\\n\\n /// @notice IERC165 supports an interfaceId\\n /// @param interfaceId The interfaceId to check\\n /// @return true if the interfaceId is supported\\n /// @dev Should indicate whether the contract implements IAny2EVMMessageReceiver\\n /// e.g. return interfaceId == type(IAny2EVMMessageReceiver).interfaceId || interfaceId == type(IERC165).interfaceId\\n /// This allows CCIP to check if ccipReceive is available before calling it.\\n /// If this returns false or reverts, only tokens are transferred to the receiver.\\n /// If this returns true, tokens are transferred and ccipReceive is called atomically.\\n /// Additionally, if the receiver address does not have code associated with\\n /// it at the time of execution (EXTCODESIZE returns 0), only tokens will be transferred.\\n function supportsInterface(bytes4 interfaceId) public pure virtual override returns (bool) {\\n return interfaceId == type(IAny2EVMMessageReceiver).interfaceId || interfaceId == type(IERC165).interfaceId;\\n }\\n\\n /// @inheritdoc IAny2EVMMessageReceiver\\n function ccipReceive(Client.Any2EVMMessage calldata message) external virtual override onlyRouter {\\n _ccipReceive(message);\\n }\\n\\n /// @notice Override this function in your implementation.\\n /// @param message Any2EVMMessage\\n function _ccipReceive(Client.Any2EVMMessage memory message) internal virtual;\\n\\n /////////////////////////////////////////////////////////////////////\\n // Plumbing\\n /////////////////////////////////////////////////////////////////////\\n\\n /// @notice Return the current router\\n /// @return CCIP router address\\n function getRouter() public view returns (address) {\\n return address(_getCCIPReceiverStorage()._rounter);\\n }\\n\\n error InvalidRouter(address router);\\n\\n /// @dev only calls from the set router are accepted.\\n modifier onlyRouter() {\\n if (msg.sender != address(_getCCIPReceiverStorage()._rounter)) revert InvalidRouter(msg.sender);\\n _;\\n }\\n}\\n\",\"keccak256\":\"0x3e5cfbfea8ac621c074d3eea80f6ca735d6b7784903e013887645691ed41b309\",\"license\":\"MIT\"},\"src/Troy.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\npragma solidity >=0.8.25;\\n\\nimport { UUPSUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport { Ownable2StepUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\nimport { Client } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\\\";\\nimport { CCIPReceiverUpgradeable } from \\\"./CCIPReceiverUpgradeable.sol\\\";\\n\\ncontract Troy is UUPSUpgradeable, Ownable2StepUpgradeable, CCIPReceiverUpgradeable {\\n struct TroyStorage {\\n uint256 championChainId;\\n uint256 soldierAmount;\\n }\\n\\n event SoldiersArrive(\\n uint256 indexed chainId,\\n uint256 amount,\\n uint256 initChampion,\\n uint256 initAmount,\\n uint256 laterChainpion,\\n uint256 laterAmount\\n );\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"battleoflayers.storage.troy\\\")) - 1)) & ~ bytes32(uint256(0xff))\\n //\\n bytes32 private constant TroyStorageLocation = 0xdd3df5464778d98b8f59c24d166861cc7b36f749c939a9173f338d95c7f4fe00;\\n\\n function _getTroyStorage() internal pure returns (TroyStorage storage $) {\\n assembly {\\n $.slot := TroyStorageLocation\\n }\\n }\\n\\n function initialize(address owner_, address router_) external initializer {\\n _transferOwnership(owner_);\\n\\n __CCIPReceiver_init(router_);\\n }\\n\\n // only owner can upgrade\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner { }\\n\\n // handle a received message\\n function _ccipReceive(Client.Any2EVMMessage memory any2EvmMessage) internal override {\\n // logic here\\n (uint256 srcChainId, uint256 incommingSoldierAmount) = abi.decode(any2EvmMessage.data, (uint256, uint256));\\n\\n uint256 championChainId = _getTroyStorage().championChainId;\\n uint256 curSoldierAmount = _getTroyStorage().soldierAmount;\\n\\n if (srcChainId == championChainId) {\\n _getTroyStorage().soldierAmount += incommingSoldierAmount;\\n } else {\\n if (curSoldierAmount >= incommingSoldierAmount) {\\n _getTroyStorage().soldierAmount += incommingSoldierAmount;\\n } else {\\n _getTroyStorage().soldierAmount = incommingSoldierAmount - curSoldierAmount;\\n _getTroyStorage().championChainId = srcChainId;\\n }\\n }\\n\\n emit SoldiersArrive(\\n srcChainId,\\n incommingSoldierAmount,\\n championChainId,\\n curSoldierAmount,\\n _getTroyStorage().championChainId,\\n _getTroyStorage().soldierAmount\\n );\\n }\\n}\\n\",\"keccak256\":\"0x68be362b34af9e489375b1642adb7794f5a8cf9768858181ed070810eba8b414\",\"license\":\"UNLICENSED\"}},\"version\":1}",
- "bytecode": "0x60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff16815250348015604257600080fd5b50608051611c2f61006c60003960008181610956015281816109ab0152610b660152611c2f6000f3fe6080604052600436106100a75760003560e01c806385572ffb1161006457806385572ffb146101875780638da5cb5b146101b0578063ad3cb1cc146101db578063b0f479a114610206578063e30c397814610231578063f2fde38b1461025c576100a7565b806301ffc9a7146100ac578063485cc955146100e95780634f1ef2861461011257806352d1902d1461012e578063715018a61461015957806379ba509714610170575b600080fd5b3480156100b857600080fd5b506100d360048036038101906100ce91906112b8565b610285565b6040516100e09190611300565b60405180910390f35b3480156100f557600080fd5b50610110600480360381019061010b9190611379565b610357565b005b61012c600480360381019061012791906114ff565b6104f0565b005b34801561013a57600080fd5b5061014361050f565b6040516101509190611574565b60405180910390f35b34801561016557600080fd5b5061016e610542565b005b34801561017c57600080fd5b50610185610556565b005b34801561019357600080fd5b506101ae60048036038101906101a991906115b3565b6105e5565b005b3480156101bc57600080fd5b506101c5610695565b6040516101d2919061160b565b60405180910390f35b3480156101e757600080fd5b506101f06106cd565b6040516101fd91906116a5565b60405180910390f35b34801561021257600080fd5b5061021b610706565b604051610228919061160b565b60405180910390f35b34801561023d57600080fd5b50610246610739565b604051610253919061160b565b60405180910390f35b34801561026857600080fd5b50610283600480360381019061027e91906116c7565b610771565b005b60007f85572ffb000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061035057507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600061036161082d565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156103af5750825b9050600060018367ffffffffffffffff161480156103e4575060003073ffffffffffffffffffffffffffffffffffffffff163b145b9050811580156103f2575080155b15610429576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156104795760018560000160086101000a81548160ff0219169083151502179055505b61048287610855565b61048b86610895565b83156104e75760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516104de919061174d565b60405180910390a15b50505050505050565b6104f8610954565b61050182610a3a565b61050b8282610a45565b5050565b6000610519610b64565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b61054a610beb565b6105546000610855565b565b6000610560610c72565b90508073ffffffffffffffffffffffffffffffffffffffff16610581610739565b73ffffffffffffffffffffffffffffffffffffffff16146105d957806040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016105d0919061160b565b60405180910390fd5b6105e281610855565b50565b6105ed610c7a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461068057336040517fd7f73334000000000000000000000000000000000000000000000000000000008152600401610677919061160b565b60405180910390fd5b6106928161068d906119f8565b610ca2565b50565b6000806106a0610dc7565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b6000610710610c7a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080610744610def565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b610779610beb565b6000610783610def565b9050818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff166107e7610695565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b600061085f610def565b90508060000160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905561089182610e17565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109075760006040517fd7f733340000000000000000000000000000000000000000000000000000000081526004016108fe919061160b565b60405180910390fd5b80610910610c7a565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161480610a0157507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166109e8610eee565b73ffffffffffffffffffffffffffffffffffffffff1614155b15610a38576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610a42610beb565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610aad57506040513d601f19601f82011682018060405250810190610aaa9190611a20565b60015b610aee57816040517f4c9c8ce3000000000000000000000000000000000000000000000000000000008152600401610ae5919061160b565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114610b5557806040517faa1d49a4000000000000000000000000000000000000000000000000000000008152600401610b4c9190611574565b60405180910390fd5b610b5f8383610f45565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614610be9576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610bf3610c72565b73ffffffffffffffffffffffffffffffffffffffff16610c11610695565b73ffffffffffffffffffffffffffffffffffffffff1614610c7057610c34610c72565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610c67919061160b565b60405180910390fd5b565b600033905090565b60007fb9605d6807cee7e996cb505aab0fff682142fb832cd7587ec7f7258d80300000905090565b6000808260600151806020019051810190610cbd9190611a62565b915091506000610ccb610fb8565b6000015490506000610cdb610fb8565b600101549050818403610d0f5782610cf1610fb8565b6001016000828254610d039190611ad1565b92505081905550610d6a565b828110610d3d5782610d1f610fb8565b6001016000828254610d319190611ad1565b92505081905550610d69565b8083610d499190611b05565b610d51610fb8565b6001018190555083610d61610fb8565b600001819055505b5b837f9ee8144ef8473ddbca3dcf0ed6023b3a5daf173621e2e073c6946ac72df54147848484610d97610fb8565b60000154610da3610fb8565b60010154604051610db8959493929190611b48565b60405180910390a25050505050565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b60007f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00905090565b6000610e21610dc7565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000610f1c7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b610fe0565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610f4e82610fea565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a2600081511115610fab57610fa582826110b7565b50610fb4565b610fb361113b565b5b5050565b60007fdd3df5464778d98b8f59c24d166861cc7b36f749c939a9173f338d95c7f4fe00905090565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b0361104657806040517f4c9c8ce300000000000000000000000000000000000000000000000000000000815260040161103d919061160b565b60405180910390fd5b806110737f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b610fe0565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff16846040516110e19190611be2565b600060405180830381855af49150503d806000811461111c576040519150601f19603f3d011682016040523d82523d6000602084013e611121565b606091505b5091509150611131858383611178565b9250505092915050565b6000341115611176576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608261118d5761118882611207565b6111ff565b600082511480156111b5575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156111f757836040517f9996b3150000000000000000000000000000000000000000000000000000000081526004016111ee919061160b565b60405180910390fd5b819050611200565b5b9392505050565b60008151111561121a5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61129581611260565b81146112a057600080fd5b50565b6000813590506112b28161128c565b92915050565b6000602082840312156112ce576112cd611256565b5b60006112dc848285016112a3565b91505092915050565b60008115159050919050565b6112fa816112e5565b82525050565b600060208201905061131560008301846112f1565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006113468261131b565b9050919050565b6113568161133b565b811461136157600080fd5b50565b6000813590506113738161134d565b92915050565b600080604083850312156113905761138f611256565b5b600061139e85828601611364565b92505060206113af85828601611364565b9150509250929050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61140c826113c3565b810181811067ffffffffffffffff8211171561142b5761142a6113d4565b5b80604052505050565b600061143e61124c565b905061144a8282611403565b919050565b600067ffffffffffffffff82111561146a576114696113d4565b5b611473826113c3565b9050602081019050919050565b82818337600083830152505050565b60006114a261149d8461144f565b611434565b9050828152602081018484840111156114be576114bd6113be565b5b6114c9848285611480565b509392505050565b600082601f8301126114e6576114e56113b9565b5b81356114f684826020860161148f565b91505092915050565b6000806040838503121561151657611515611256565b5b600061152485828601611364565b925050602083013567ffffffffffffffff8111156115455761154461125b565b5b611551858286016114d1565b9150509250929050565b6000819050919050565b61156e8161155b565b82525050565b60006020820190506115896000830184611565565b92915050565b600080fd5b600060a082840312156115aa576115a961158f565b5b81905092915050565b6000602082840312156115c9576115c8611256565b5b600082013567ffffffffffffffff8111156115e7576115e661125b565b5b6115f384828501611594565b91505092915050565b6116058161133b565b82525050565b600060208201905061162060008301846115fc565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611660578082015181840152602081019050611645565b60008484015250505050565b600061167782611626565b6116818185611631565b9350611691818560208601611642565b61169a816113c3565b840191505092915050565b600060208201905081810360008301526116bf818461166c565b905092915050565b6000602082840312156116dd576116dc611256565b5b60006116eb84828501611364565b91505092915050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b600061173761173261172d846116f4565b611712565b6116fe565b9050919050565b6117478161171c565b82525050565b6000602082019050611762600083018461173e565b92915050565b600080fd5b600080fd5b61177b8161155b565b811461178657600080fd5b50565b60008135905061179881611772565b92915050565b6117a7816116fe565b81146117b257600080fd5b50565b6000813590506117c48161179e565b92915050565b600067ffffffffffffffff8211156117e5576117e46113d4565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b61180e816117fb565b811461181957600080fd5b50565b60008135905061182b81611805565b92915050565b60006040828403121561184757611846611768565b5b6118516040611434565b9050600061186184828501611364565b60008301525060206118758482850161181c565b60208301525092915050565b600061189461188f846117ca565b611434565b905080838252602082019050604084028301858111156118b7576118b66117f6565b5b835b818110156118e057806118cc8882611831565b8452602084019350506040810190506118b9565b5050509392505050565b600082601f8301126118ff576118fe6113b9565b5b813561190f848260208601611881565b91505092915050565b600060a0828403121561192e5761192d611768565b5b61193860a0611434565b9050600061194884828501611789565b600083015250602061195c848285016117b5565b602083015250604082013567ffffffffffffffff8111156119805761197f61176d565b5b61198c848285016114d1565b604083015250606082013567ffffffffffffffff8111156119b0576119af61176d565b5b6119bc848285016114d1565b606083015250608082013567ffffffffffffffff8111156119e0576119df61176d565b5b6119ec848285016118ea565b60808301525092915050565b6000611a043683611918565b9050919050565b600081519050611a1a81611772565b92915050565b600060208284031215611a3657611a35611256565b5b6000611a4484828501611a0b565b91505092915050565b600081519050611a5c81611805565b92915050565b60008060408385031215611a7957611a78611256565b5b6000611a8785828601611a4d565b9250506020611a9885828601611a4d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611adc826117fb565b9150611ae7836117fb565b9250828201905080821115611aff57611afe611aa2565b5b92915050565b6000611b10826117fb565b9150611b1b836117fb565b9250828203905081811115611b3357611b32611aa2565b5b92915050565b611b42816117fb565b82525050565b600060a082019050611b5d6000830188611b39565b611b6a6020830187611b39565b611b776040830186611b39565b611b846060830185611b39565b611b916080830184611b39565b9695505050505050565b600081519050919050565b600081905092915050565b6000611bbc82611b9b565b611bc68185611ba6565b9350611bd6818560208601611642565b80840191505092915050565b6000611bee8284611bb1565b91508190509291505056fea2646970667358221220c36339c4cdec469e2878e13c663bfac3d375942ea2100cda0c56c75e2c741ece64736f6c63430008190033",
- "deployedBytecode": "0x6080604052600436106100a75760003560e01c806385572ffb1161006457806385572ffb146101875780638da5cb5b146101b0578063ad3cb1cc146101db578063b0f479a114610206578063e30c397814610231578063f2fde38b1461025c576100a7565b806301ffc9a7146100ac578063485cc955146100e95780634f1ef2861461011257806352d1902d1461012e578063715018a61461015957806379ba509714610170575b600080fd5b3480156100b857600080fd5b506100d360048036038101906100ce91906112b8565b610285565b6040516100e09190611300565b60405180910390f35b3480156100f557600080fd5b50610110600480360381019061010b9190611379565b610357565b005b61012c600480360381019061012791906114ff565b6104f0565b005b34801561013a57600080fd5b5061014361050f565b6040516101509190611574565b60405180910390f35b34801561016557600080fd5b5061016e610542565b005b34801561017c57600080fd5b50610185610556565b005b34801561019357600080fd5b506101ae60048036038101906101a991906115b3565b6105e5565b005b3480156101bc57600080fd5b506101c5610695565b6040516101d2919061160b565b60405180910390f35b3480156101e757600080fd5b506101f06106cd565b6040516101fd91906116a5565b60405180910390f35b34801561021257600080fd5b5061021b610706565b604051610228919061160b565b60405180910390f35b34801561023d57600080fd5b50610246610739565b604051610253919061160b565b60405180910390f35b34801561026857600080fd5b50610283600480360381019061027e91906116c7565b610771565b005b60007f85572ffb000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061035057507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b600061036161082d565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156103af5750825b9050600060018367ffffffffffffffff161480156103e4575060003073ffffffffffffffffffffffffffffffffffffffff163b145b9050811580156103f2575080155b15610429576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156104795760018560000160086101000a81548160ff0219169083151502179055505b61048287610855565b61048b86610895565b83156104e75760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516104de919061174d565b60405180910390a15b50505050505050565b6104f8610954565b61050182610a3a565b61050b8282610a45565b5050565b6000610519610b64565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b61054a610beb565b6105546000610855565b565b6000610560610c72565b90508073ffffffffffffffffffffffffffffffffffffffff16610581610739565b73ffffffffffffffffffffffffffffffffffffffff16146105d957806040517f118cdaa70000000000000000000000000000000000000000000000000000000081526004016105d0919061160b565b60405180910390fd5b6105e281610855565b50565b6105ed610c7a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461068057336040517fd7f73334000000000000000000000000000000000000000000000000000000008152600401610677919061160b565b60405180910390fd5b6106928161068d906119f8565b610ca2565b50565b6000806106a0610dc7565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b6000610710610c7a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600080610744610def565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b610779610beb565b6000610783610def565b9050818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff166107e7610695565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b600061085f610def565b90508060000160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905561089182610e17565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109075760006040517fd7f733340000000000000000000000000000000000000000000000000000000081526004016108fe919061160b565b60405180910390fd5b80610910610c7a565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161480610a0157507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166109e8610eee565b73ffffffffffffffffffffffffffffffffffffffff1614155b15610a38576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610a42610beb565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610aad57506040513d601f19601f82011682018060405250810190610aaa9190611a20565b60015b610aee57816040517f4c9c8ce3000000000000000000000000000000000000000000000000000000008152600401610ae5919061160b565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114610b5557806040517faa1d49a4000000000000000000000000000000000000000000000000000000008152600401610b4c9190611574565b60405180910390fd5b610b5f8383610f45565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614610be9576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610bf3610c72565b73ffffffffffffffffffffffffffffffffffffffff16610c11610695565b73ffffffffffffffffffffffffffffffffffffffff1614610c7057610c34610c72565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610c67919061160b565b60405180910390fd5b565b600033905090565b60007fb9605d6807cee7e996cb505aab0fff682142fb832cd7587ec7f7258d80300000905090565b6000808260600151806020019051810190610cbd9190611a62565b915091506000610ccb610fb8565b6000015490506000610cdb610fb8565b600101549050818403610d0f5782610cf1610fb8565b6001016000828254610d039190611ad1565b92505081905550610d6a565b828110610d3d5782610d1f610fb8565b6001016000828254610d319190611ad1565b92505081905550610d69565b8083610d499190611b05565b610d51610fb8565b6001018190555083610d61610fb8565b600001819055505b5b837f9ee8144ef8473ddbca3dcf0ed6023b3a5daf173621e2e073c6946ac72df54147848484610d97610fb8565b60000154610da3610fb8565b60010154604051610db8959493929190611b48565b60405180910390a25050505050565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b60007f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00905090565b6000610e21610dc7565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000610f1c7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b610fe0565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610f4e82610fea565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a2600081511115610fab57610fa582826110b7565b50610fb4565b610fb361113b565b5b5050565b60007fdd3df5464778d98b8f59c24d166861cc7b36f749c939a9173f338d95c7f4fe00905090565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b0361104657806040517f4c9c8ce300000000000000000000000000000000000000000000000000000000815260040161103d919061160b565b60405180910390fd5b806110737f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b610fe0565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff16846040516110e19190611be2565b600060405180830381855af49150503d806000811461111c576040519150601f19603f3d011682016040523d82523d6000602084013e611121565b606091505b5091509150611131858383611178565b9250505092915050565b6000341115611176576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60608261118d5761118882611207565b6111ff565b600082511480156111b5575060008473ffffffffffffffffffffffffffffffffffffffff163b145b156111f757836040517f9996b3150000000000000000000000000000000000000000000000000000000081526004016111ee919061160b565b60405180910390fd5b819050611200565b5b9392505050565b60008151111561121a5780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61129581611260565b81146112a057600080fd5b50565b6000813590506112b28161128c565b92915050565b6000602082840312156112ce576112cd611256565b5b60006112dc848285016112a3565b91505092915050565b60008115159050919050565b6112fa816112e5565b82525050565b600060208201905061131560008301846112f1565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006113468261131b565b9050919050565b6113568161133b565b811461136157600080fd5b50565b6000813590506113738161134d565b92915050565b600080604083850312156113905761138f611256565b5b600061139e85828601611364565b92505060206113af85828601611364565b9150509250929050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61140c826113c3565b810181811067ffffffffffffffff8211171561142b5761142a6113d4565b5b80604052505050565b600061143e61124c565b905061144a8282611403565b919050565b600067ffffffffffffffff82111561146a576114696113d4565b5b611473826113c3565b9050602081019050919050565b82818337600083830152505050565b60006114a261149d8461144f565b611434565b9050828152602081018484840111156114be576114bd6113be565b5b6114c9848285611480565b509392505050565b600082601f8301126114e6576114e56113b9565b5b81356114f684826020860161148f565b91505092915050565b6000806040838503121561151657611515611256565b5b600061152485828601611364565b925050602083013567ffffffffffffffff8111156115455761154461125b565b5b611551858286016114d1565b9150509250929050565b6000819050919050565b61156e8161155b565b82525050565b60006020820190506115896000830184611565565b92915050565b600080fd5b600060a082840312156115aa576115a961158f565b5b81905092915050565b6000602082840312156115c9576115c8611256565b5b600082013567ffffffffffffffff8111156115e7576115e661125b565b5b6115f384828501611594565b91505092915050565b6116058161133b565b82525050565b600060208201905061162060008301846115fc565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015611660578082015181840152602081019050611645565b60008484015250505050565b600061167782611626565b6116818185611631565b9350611691818560208601611642565b61169a816113c3565b840191505092915050565b600060208201905081810360008301526116bf818461166c565b905092915050565b6000602082840312156116dd576116dc611256565b5b60006116eb84828501611364565b91505092915050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b600061173761173261172d846116f4565b611712565b6116fe565b9050919050565b6117478161171c565b82525050565b6000602082019050611762600083018461173e565b92915050565b600080fd5b600080fd5b61177b8161155b565b811461178657600080fd5b50565b60008135905061179881611772565b92915050565b6117a7816116fe565b81146117b257600080fd5b50565b6000813590506117c48161179e565b92915050565b600067ffffffffffffffff8211156117e5576117e46113d4565b5b602082029050602081019050919050565b600080fd5b6000819050919050565b61180e816117fb565b811461181957600080fd5b50565b60008135905061182b81611805565b92915050565b60006040828403121561184757611846611768565b5b6118516040611434565b9050600061186184828501611364565b60008301525060206118758482850161181c565b60208301525092915050565b600061189461188f846117ca565b611434565b905080838252602082019050604084028301858111156118b7576118b66117f6565b5b835b818110156118e057806118cc8882611831565b8452602084019350506040810190506118b9565b5050509392505050565b600082601f8301126118ff576118fe6113b9565b5b813561190f848260208601611881565b91505092915050565b600060a0828403121561192e5761192d611768565b5b61193860a0611434565b9050600061194884828501611789565b600083015250602061195c848285016117b5565b602083015250604082013567ffffffffffffffff8111156119805761197f61176d565b5b61198c848285016114d1565b604083015250606082013567ffffffffffffffff8111156119b0576119af61176d565b5b6119bc848285016114d1565b606083015250608082013567ffffffffffffffff8111156119e0576119df61176d565b5b6119ec848285016118ea565b60808301525092915050565b6000611a043683611918565b9050919050565b600081519050611a1a81611772565b92915050565b600060208284031215611a3657611a35611256565b5b6000611a4484828501611a0b565b91505092915050565b600081519050611a5c81611805565b92915050565b60008060408385031215611a7957611a78611256565b5b6000611a8785828601611a4d565b9250506020611a9885828601611a4d565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611adc826117fb565b9150611ae7836117fb565b9250828201905080821115611aff57611afe611aa2565b5b92915050565b6000611b10826117fb565b9150611b1b836117fb565b9250828203905081811115611b3357611b32611aa2565b5b92915050565b611b42816117fb565b82525050565b600060a082019050611b5d6000830188611b39565b611b6a6020830187611b39565b611b776040830186611b39565b611b846060830185611b39565b611b916080830184611b39565b9695505050505050565b600081519050919050565b600081905092915050565b6000611bbc82611b9b565b611bc68185611ba6565b9350611bd6818560208601611642565b80840191505092915050565b6000611bee8284611bb1565b91508190509291505056fea2646970667358221220c36339c4cdec469e2878e13c663bfac3d375942ea2100cda0c56c75e2c741ece64736f6c63430008190033",
+ "solcInputHash": "50f0135ed1b76d5ef4eade774f31e1b4",
+ "metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"ERC1967InvalidImplementation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ERC1967NonPayable\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedInnerCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"router\",\"type\":\"address\"}],\"name\":\"InvalidRouter\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"UUPSUnauthorizedCallContext\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"slot\",\"type\":\"bytes32\"}],\"name\":\"UUPSUnsupportedProxiableUUID\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"initChampion\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"initAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"laterChainpion\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"laterAmount\",\"type\":\"uint256\"}],\"name\":\"SoldiersArrive\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"UPGRADE_INTERFACE_VERSION\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"messageId\",\"type\":\"bytes32\"},{\"internalType\":\"uint64\",\"name\":\"sourceChainSelector\",\"type\":\"uint64\"},{\"internalType\":\"bytes\",\"name\":\"sender\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"internalType\":\"struct Client.EVMTokenAmount[]\",\"name\":\"destTokenAmounts\",\"type\":\"tuple[]\"}],\"internalType\":\"struct Client.Any2EVMMessage\",\"name\":\"message\",\"type\":\"tuple\"}],\"name\":\"ccipReceive\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRouter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"router_\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proxiableUUID\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"readStorageValue\",\"outputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"championChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"soldierAmount\",\"type\":\"uint256\"}],\"internalType\":\"struct Troy.TroyStorage\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"upgradeToAndCall\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"errors\":{\"AddressEmptyCode(address)\":[{\"details\":\"There's no code at `target` (it is not a contract).\"}],\"ERC1967InvalidImplementation(address)\":[{\"details\":\"The `implementation` of the proxy is invalid.\"}],\"ERC1967NonPayable()\":[{\"details\":\"An upgrade function sees `msg.value > 0` that may be lost.\"}],\"FailedInnerCall()\":[{\"details\":\"A call to an address target failed. The target may have reverted.\"}],\"InvalidInitialization()\":[{\"details\":\"The contract is already initialized.\"}],\"NotInitializing()\":[{\"details\":\"The contract is not initializing.\"}],\"OwnableInvalidOwner(address)\":[{\"details\":\"The owner is not a valid owner account. (eg. `address(0)`)\"}],\"OwnableUnauthorizedAccount(address)\":[{\"details\":\"The caller account is not authorized to perform an operation.\"}],\"UUPSUnauthorizedCallContext()\":[{\"details\":\"The call is from an unauthorized context.\"}],\"UUPSUnsupportedProxiableUUID(bytes32)\":[{\"details\":\"The storage `slot` is unsupported as a UUID.\"}]},\"events\":{\"Initialized(uint64)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"Upgraded(address)\":{\"details\":\"Emitted when the implementation is upgraded.\"}},\"kind\":\"dev\",\"methods\":{\"acceptOwnership()\":{\"details\":\"The new owner accepts the ownership transfer.\"},\"ccipReceive((bytes32,uint64,bytes,bytes,(address,uint256)[]))\":{\"details\":\"Note ensure you check the msg.sender is the OffRampRouter\",\"params\":{\"message\":\"CCIP Message\"}},\"getRouter()\":{\"returns\":{\"_0\":\"CCIP router address\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"pendingOwner()\":{\"details\":\"Returns the address of the pending owner.\"},\"proxiableUUID()\":{\"details\":\"Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"supportsInterface(bytes4)\":{\"details\":\"Should indicate whether the contract implements IAny2EVMMessageReceiver e.g. return interfaceId == type(IAny2EVMMessageReceiver).interfaceId || interfaceId == type(IERC165).interfaceId This allows CCIP to check if ccipReceive is available before calling it. If this returns false or reverts, only tokens are transferred to the receiver. If this returns true, tokens are transferred and ccipReceive is called atomically. Additionally, if the receiver address does not have code associated with it at the time of execution (EXTCODESIZE returns 0), only tokens will be transferred.\",\"params\":{\"interfaceId\":\"The interfaceId to check\"},\"returns\":{\"_0\":\"true if the interfaceId is supported\"}},\"transferOwnership(address)\":{\"details\":\"Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner.\"},\"upgradeToAndCall(address,bytes)\":{\"custom:oz-upgrades-unsafe-allow-reachable\":\"delegatecall\",\"details\":\"Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"ccipReceive((bytes32,uint64,bytes,bytes,(address,uint256)[]))\":{\"notice\":\"Called by the Router to deliver a message. If this reverts, any token transfers also revert. The message will move to a FAILED state and become available for manual execution.\"},\"getRouter()\":{\"notice\":\"Return the current router\"},\"supportsInterface(bytes4)\":{\"notice\":\"IERC165 supports an interfaceId\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/Troy.sol\":\"Troy\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IAny2EVMMessageReceiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport {Client} from \\\"../libraries/Client.sol\\\";\\n\\n/// @notice Application contracts that intend to receive messages from\\n/// the router should implement this interface.\\ninterface IAny2EVMMessageReceiver {\\n /// @notice Called by the Router to deliver a message.\\n /// If this reverts, any token transfers also revert. The message\\n /// will move to a FAILED state and become available for manual execution.\\n /// @param message CCIP Message\\n /// @dev Note ensure you check the msg.sender is the OffRampRouter\\n function ccipReceive(Client.Any2EVMMessage calldata message) external;\\n}\\n\",\"keccak256\":\"0xd2a05a4f58a453cbf8cfa6aa78f58cb8e42091b3a025f711a0aa51f584e16b48\",\"license\":\"MIT\"},\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// End consumer library.\\nlibrary Client {\\n /// @dev RMN depends on this struct, if changing, please notify the RMN maintainers.\\n struct EVMTokenAmount {\\n address token; // token address on the local chain.\\n uint256 amount; // Amount of tokens.\\n }\\n\\n struct Any2EVMMessage {\\n bytes32 messageId; // MessageId corresponding to ccipSend on source.\\n uint64 sourceChainSelector; // Source chain selector.\\n bytes sender; // abi.decode(sender) if coming from an EVM chain.\\n bytes data; // payload sent in original message.\\n EVMTokenAmount[] destTokenAmounts; // Tokens and their amounts in their destination chain representation.\\n }\\n\\n // If extraArgs is empty bytes, the default is 200k gas limit.\\n struct EVM2AnyMessage {\\n bytes receiver; // abi.encode(receiver address) for dest EVM chains\\n bytes data; // Data payload\\n EVMTokenAmount[] tokenAmounts; // Token transfers\\n address feeToken; // Address of feeToken. address(0) means you will send msg.value.\\n bytes extraArgs; // Populate this with _argsToBytes(EVMExtraArgsV1)\\n }\\n\\n // bytes4(keccak256(\\\"CCIP EVMExtraArgsV1\\\"));\\n bytes4 public constant EVM_EXTRA_ARGS_V1_TAG = 0x97a657c9;\\n struct EVMExtraArgsV1 {\\n uint256 gasLimit;\\n }\\n\\n function _argsToBytes(EVMExtraArgsV1 memory extraArgs) internal pure returns (bytes memory bts) {\\n return abi.encodeWithSelector(EVM_EXTRA_ARGS_V1_TAG, extraArgs);\\n }\\n}\\n\",\"keccak256\":\"0x8af3ac1085c87342373772fb1a0107c7b90258e6bfed318ab2a601a14477e679\",\"license\":\"MIT\"},\"@chainlink/contracts-ccip/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\",\"keccak256\":\"0xa36a31b4bb17fad88d023474893b3b895fa421650543b1ce5aefc78efbd43244\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable2Step.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {OwnableUpgradeable} from \\\"./OwnableUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is specified at deployment time in the constructor for `Ownable`. This\\n * can later be changed with {transferOwnership} and {acceptOwnership}.\\n *\\n * This module is used through inheritance. It will make available all functions\\n * from parent (Ownable).\\n */\\nabstract contract Ownable2StepUpgradeable is Initializable, OwnableUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable2Step\\n struct Ownable2StepStorage {\\n address _pendingOwner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable2Step\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant Ownable2StepStorageLocation = 0x237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00;\\n\\n function _getOwnable2StepStorage() private pure returns (Ownable2StepStorage storage $) {\\n assembly {\\n $.slot := Ownable2StepStorageLocation\\n }\\n }\\n\\n event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner);\\n\\n function __Ownable2Step_init() internal onlyInitializing {\\n }\\n\\n function __Ownable2Step_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Returns the address of the pending owner.\\n */\\n function pendingOwner() public view virtual returns (address) {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n return $._pendingOwner;\\n }\\n\\n /**\\n * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one.\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual override onlyOwner {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n $._pendingOwner = newOwner;\\n emit OwnershipTransferStarted(owner(), newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner.\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual override {\\n Ownable2StepStorage storage $ = _getOwnable2StepStorage();\\n delete $._pendingOwner;\\n super._transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev The new owner accepts the ownership transfer.\\n */\\n function acceptOwnership() public virtual {\\n address sender = _msgSender();\\n if (pendingOwner() != sender) {\\n revert OwnableUnauthorizedAccount(sender);\\n }\\n _transferOwnership(sender);\\n }\\n}\\n\",\"keccak256\":\"0xbca4a4f66d98028293dba695851d1b20d3e0ba2fff7453fb241f192fa3fc6b6f\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {ContextUpgradeable} from \\\"../utils/ContextUpgradeable.sol\\\";\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * The initial owner is set to the address provided by the deployer. This can\\n * later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract OwnableUpgradeable is Initializable, ContextUpgradeable {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable\\n struct OwnableStorage {\\n address _owner;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Ownable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant OwnableStorageLocation = 0x9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300;\\n\\n function _getOwnableStorage() private pure returns (OwnableStorage storage $) {\\n assembly {\\n $.slot := OwnableStorageLocation\\n }\\n }\\n\\n /**\\n * @dev The caller account is not authorized to perform an operation.\\n */\\n error OwnableUnauthorizedAccount(address account);\\n\\n /**\\n * @dev The owner is not a valid owner account. (eg. `address(0)`)\\n */\\n error OwnableInvalidOwner(address owner);\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the address provided by the deployer as the initial owner.\\n */\\n function __Ownable_init(address initialOwner) internal onlyInitializing {\\n __Ownable_init_unchained(initialOwner);\\n }\\n\\n function __Ownable_init_unchained(address initialOwner) internal onlyInitializing {\\n if (initialOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(initialOwner);\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n OwnableStorage storage $ = _getOwnableStorage();\\n return $._owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n if (owner() != _msgSender()) {\\n revert OwnableUnauthorizedAccount(_msgSender());\\n }\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n if (newOwner == address(0)) {\\n revert OwnableInvalidOwner(address(0));\\n }\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n OwnableStorage storage $ = _getOwnableStorage();\\n address oldOwner = $._owner;\\n $._owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xc163fcf9bb10138631a9ba5564df1fa25db9adff73bd9ee868a8ae1858fe093a\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```solidity\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n *\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Storage of the initializable contract.\\n *\\n * It's implemented on a custom ERC-7201 namespace to reduce the risk of storage collisions\\n * when using with upgradeable contracts.\\n *\\n * @custom:storage-location erc7201:openzeppelin.storage.Initializable\\n */\\n struct InitializableStorage {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n */\\n uint64 _initialized;\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool _initializing;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"openzeppelin.storage.Initializable\\\")) - 1)) & ~bytes32(uint256(0xff))\\n bytes32 private constant INITIALIZABLE_STORAGE = 0xf0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00;\\n\\n /**\\n * @dev The contract is already initialized.\\n */\\n error InvalidInitialization();\\n\\n /**\\n * @dev The contract is not initializing.\\n */\\n error NotInitializing();\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint64 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts.\\n *\\n * Similar to `reinitializer(1)`, except that in the context of a constructor an `initializer` may be invoked any\\n * number of times. This behavior in the constructor can be useful during testing and is not expected to be used in\\n * production.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n // Cache values to avoid duplicated sloads\\n bool isTopLevelCall = !$._initializing;\\n uint64 initialized = $._initialized;\\n\\n // Allowed calls:\\n // - initialSetup: the contract is not in the initializing state and no previous version was\\n // initialized\\n // - construction: the contract is initialized at version 1 (no reininitialization) and the\\n // current contract is just being deployed\\n bool initialSetup = initialized == 0 && isTopLevelCall;\\n bool construction = initialized == 1 && address(this).code.length == 0;\\n\\n if (!initialSetup && !construction) {\\n revert InvalidInitialization();\\n }\\n $._initialized = 1;\\n if (isTopLevelCall) {\\n $._initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n $._initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n *\\n * WARNING: Setting the version to 2**64 - 1 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier reinitializer(uint64 version) {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing || $._initialized >= version) {\\n revert InvalidInitialization();\\n }\\n $._initialized = version;\\n $._initializing = true;\\n _;\\n $._initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n _checkInitializing();\\n _;\\n }\\n\\n /**\\n * @dev Reverts if the contract is not in an initializing state. See {onlyInitializing}.\\n */\\n function _checkInitializing() internal view virtual {\\n if (!_isInitializing()) {\\n revert NotInitializing();\\n }\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n *\\n * Emits an {Initialized} event the first time it is successfully executed.\\n */\\n function _disableInitializers() internal virtual {\\n // solhint-disable-next-line var-name-mixedcase\\n InitializableStorage storage $ = _getInitializableStorage();\\n\\n if ($._initializing) {\\n revert InvalidInitialization();\\n }\\n if ($._initialized != type(uint64).max) {\\n $._initialized = type(uint64).max;\\n emit Initialized(type(uint64).max);\\n }\\n }\\n\\n /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint64) {\\n return _getInitializableStorage()._initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _getInitializableStorage()._initializing;\\n }\\n\\n /**\\n * @dev Returns a pointer to the storage namespace.\\n */\\n // solhint-disable-next-line var-name-mixedcase\\n function _getInitializableStorage() private pure returns (InitializableStorage storage $) {\\n assembly {\\n $.slot := INITIALIZABLE_STORAGE\\n }\\n }\\n}\\n\",\"keccak256\":\"0x631188737069917d2f909d29ce62c4d48611d326686ba6683e26b72a23bfac0b\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/utils/UUPSUpgradeable.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IERC1822Proxiable} from \\\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\\\";\\nimport {ERC1967Utils} from \\\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\\\";\\nimport {Initializable} from \\\"./Initializable.sol\\\";\\n\\n/**\\n * @dev An upgradeability mechanism designed for UUPS proxies. The functions included here can perform an upgrade of an\\n * {ERC1967Proxy}, when this contract is set as the implementation behind such a proxy.\\n *\\n * A security mechanism ensures that an upgrade does not turn off upgradeability accidentally, although this risk is\\n * reinstated if the upgrade retains upgradeability but removes the security mechanism, e.g. by replacing\\n * `UUPSUpgradeable` with a custom implementation of upgrades.\\n *\\n * The {_authorizeUpgrade} function must be overridden to include access restriction to the upgrade mechanism.\\n */\\nabstract contract UUPSUpgradeable is Initializable, IERC1822Proxiable {\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n address private immutable __self = address(this);\\n\\n /**\\n * @dev The version of the upgrade interface of the contract. If this getter is missing, both `upgradeTo(address)`\\n * and `upgradeToAndCall(address,bytes)` are present, and `upgradeTo` must be used if no function should be called,\\n * while `upgradeToAndCall` will invoke the `receive` function if the second argument is the empty byte string.\\n * If the getter returns `\\\"5.0.0\\\"`, only `upgradeToAndCall(address,bytes)` is present, and the second argument must\\n * be the empty byte string if no function should be called, making it impossible to invoke the `receive` function\\n * during an upgrade.\\n */\\n string public constant UPGRADE_INTERFACE_VERSION = \\\"5.0.0\\\";\\n\\n /**\\n * @dev The call is from an unauthorized context.\\n */\\n error UUPSUnauthorizedCallContext();\\n\\n /**\\n * @dev The storage `slot` is unsupported as a UUID.\\n */\\n error UUPSUnsupportedProxiableUUID(bytes32 slot);\\n\\n /**\\n * @dev Check that the execution is being performed through a delegatecall call and that the execution context is\\n * a proxy contract with an implementation (as defined in ERC1967) pointing to self. This should only be the case\\n * for UUPS and transparent proxies that are using the current contract as their implementation. Execution of a\\n * function through ERC1167 minimal proxies (clones) would not normally pass this test, but is not guaranteed to\\n * fail.\\n */\\n modifier onlyProxy() {\\n _checkProxy();\\n _;\\n }\\n\\n /**\\n * @dev Check that the execution is not being performed through a delegate call. This allows a function to be\\n * callable on the implementing contract but not through proxies.\\n */\\n modifier notDelegated() {\\n _checkNotDelegated();\\n _;\\n }\\n\\n function __UUPSUpgradeable_init() internal onlyInitializing {\\n }\\n\\n function __UUPSUpgradeable_init_unchained() internal onlyInitializing {\\n }\\n /**\\n * @dev Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the\\n * implementation. It is used to validate the implementation's compatibility when performing an upgrade.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.\\n */\\n function proxiableUUID() external view virtual notDelegated returns (bytes32) {\\n return ERC1967Utils.IMPLEMENTATION_SLOT;\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call\\n * encoded in `data`.\\n *\\n * Calls {_authorizeUpgrade}.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * @custom:oz-upgrades-unsafe-allow-reachable delegatecall\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) public payable virtual onlyProxy {\\n _authorizeUpgrade(newImplementation);\\n _upgradeToAndCallUUPS(newImplementation, data);\\n }\\n\\n /**\\n * @dev Reverts if the execution is not performed via delegatecall or the execution\\n * context is not of a proxy with an ERC1967-compliant implementation pointing to self.\\n * See {_onlyProxy}.\\n */\\n function _checkProxy() internal view virtual {\\n if (\\n address(this) == __self || // Must be called through delegatecall\\n ERC1967Utils.getImplementation() != __self // Must be called through an active proxy\\n ) {\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Reverts if the execution is performed via delegatecall.\\n * See {notDelegated}.\\n */\\n function _checkNotDelegated() internal view virtual {\\n if (address(this) != __self) {\\n // Must not be called through delegatecall\\n revert UUPSUnauthorizedCallContext();\\n }\\n }\\n\\n /**\\n * @dev Function that should revert when `msg.sender` is not authorized to upgrade the contract. Called by\\n * {upgradeToAndCall}.\\n *\\n * Normally, this function will use an xref:access.adoc[access control] modifier such as {Ownable-onlyOwner}.\\n *\\n * ```solidity\\n * function _authorizeUpgrade(address) internal onlyOwner {}\\n * ```\\n */\\n function _authorizeUpgrade(address newImplementation) internal virtual;\\n\\n /**\\n * @dev Performs an implementation upgrade with a security check for UUPS proxies, and additional setup call.\\n *\\n * As a security check, {proxiableUUID} is invoked in the new implementation, and the return value\\n * is expected to be the implementation slot in ERC1967.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(address newImplementation, bytes memory data) private {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n if (slot != ERC1967Utils.IMPLEMENTATION_SLOT) {\\n revert UUPSUnsupportedProxiableUUID(slot);\\n }\\n ERC1967Utils.upgradeToAndCall(newImplementation, data);\\n } catch {\\n // The implementation is not UUPS\\n revert ERC1967Utils.ERC1967InvalidImplementation(newImplementation);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3f13b947637c4969c0644cab4ef399cdc4b67f101463b8775c5a43b118558e53\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)\\n\\npragma solidity ^0.8.20;\\nimport {Initializable} from \\\"../proxy/utils/Initializable.sol\\\";\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract ContextUpgradeable is Initializable {\\n function __Context_init() internal onlyInitializing {\\n }\\n\\n function __Context_init_unchained() internal onlyInitializing {\\n }\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xdbef5f0c787055227243a7318ef74c8a5a1108ca3a07f2b3a00ef67769e1e397\",\"license\":\"MIT\"},\"@openzeppelin/contracts/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x2a1f9944df2015c081d89cd41ba22ffaf10aa6285969f0dc612b235cc448999c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/ERC1967/ERC1967Utils.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/ERC1967/ERC1967Utils.sol)\\n\\npragma solidity ^0.8.20;\\n\\nimport {IBeacon} from \\\"../beacon/IBeacon.sol\\\";\\nimport {Address} from \\\"../../utils/Address.sol\\\";\\nimport {StorageSlot} from \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n */\\nlibrary ERC1967Utils {\\n // We re-declare ERC-1967 events here because they can't be used directly from IERC1967.\\n // This will be fixed in Solidity 0.8.21. At that point we should remove these events.\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Emitted when the beacon is changed.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev The `implementation` of the proxy is invalid.\\n */\\n error ERC1967InvalidImplementation(address implementation);\\n\\n /**\\n * @dev The `admin` of the proxy is invalid.\\n */\\n error ERC1967InvalidAdmin(address admin);\\n\\n /**\\n * @dev The `beacon` of the proxy is invalid.\\n */\\n error ERC1967InvalidBeacon(address beacon);\\n\\n /**\\n * @dev An upgrade function sees `msg.value > 0` that may be lost.\\n */\\n error ERC1967NonPayable();\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n if (newImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(newImplementation);\\n }\\n StorageSlot.getAddressSlot(IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Performs implementation upgrade with additional setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-Upgraded} event.\\n */\\n function upgradeToAndCall(address newImplementation, bytes memory data) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(newImplementation, data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using\\n * the https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n if (newAdmin == address(0)) {\\n revert ERC1967InvalidAdmin(address(0));\\n }\\n StorageSlot.getAddressSlot(ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {IERC1967-AdminChanged} event.\\n */\\n function changeAdmin(address newAdmin) internal {\\n emit AdminChanged(getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.beacon\\\" subtracted by 1.\\n */\\n // solhint-disable-next-line private-vars-leading-underscore\\n bytes32 internal constant BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n if (newBeacon.code.length == 0) {\\n revert ERC1967InvalidBeacon(newBeacon);\\n }\\n\\n StorageSlot.getAddressSlot(BEACON_SLOT).value = newBeacon;\\n\\n address beaconImplementation = IBeacon(newBeacon).implementation();\\n if (beaconImplementation.code.length == 0) {\\n revert ERC1967InvalidImplementation(beaconImplementation);\\n }\\n }\\n\\n /**\\n * @dev Change the beacon and trigger a setup call if data is nonempty.\\n * This function is payable only if the setup call is performed, otherwise `msg.value` is rejected\\n * to avoid stuck value in the contract.\\n *\\n * Emits an {IERC1967-BeaconUpgraded} event.\\n *\\n * CAUTION: Invoking this function has no effect on an instance of {BeaconProxy} since v5, since\\n * it uses an immutable beacon without looking at the value of the ERC-1967 beacon slot for\\n * efficiency.\\n */\\n function upgradeBeaconToAndCall(address newBeacon, bytes memory data) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n\\n if (data.length > 0) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n } else {\\n _checkNonPayable();\\n }\\n }\\n\\n /**\\n * @dev Reverts if `msg.value` is not zero. It can be used to avoid `msg.value` stuck in the contract\\n * if an upgrade doesn't perform an initialization call.\\n */\\n function _checkNonPayable() private {\\n if (msg.value > 0) {\\n revert ERC1967NonPayable();\\n }\\n }\\n}\\n\",\"keccak256\":\"0x06a78f9b3ee3e6d0eb4e4cd635ba49960bea34cac1db8c0a27c75f2319f1fd65\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {UpgradeableBeacon} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xc59a78b07b44b2cf2e8ab4175fca91e8eca1eee2df7357b8d2a8833e5ea1f64c\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev The ETH balance of the account is not enough to perform the operation.\\n */\\n error AddressInsufficientBalance(address account);\\n\\n /**\\n * @dev There's no code at `target` (it is not a contract).\\n */\\n error AddressEmptyCode(address target);\\n\\n /**\\n * @dev A call to an address target failed. The target may have reverted.\\n */\\n error FailedInnerCall();\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n if (address(this).balance < amount) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n if (!success) {\\n revert FailedInnerCall();\\n }\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason or custom error, it is bubbled\\n * up by this function (like regular Solidity function calls). However, if\\n * the call reverted with no returned reason, this function reverts with a\\n * {FailedInnerCall} error.\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n if (address(this).balance < value) {\\n revert AddressInsufficientBalance(address(this));\\n }\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target\\n * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an\\n * unsuccessful call.\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata\\n ) internal view returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n // only check if target is a contract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n if (returndata.length == 0 && target.code.length == 0) {\\n revert AddressEmptyCode(target);\\n }\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the\\n * revert reason or with a default {FailedInnerCall} error.\\n */\\n function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {\\n if (!success) {\\n _revert(returndata);\\n } else {\\n return returndata;\\n }\\n }\\n\\n /**\\n * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.\\n */\\n function _revert(bytes memory returndata) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert FailedInnerCall();\\n }\\n }\\n}\\n\",\"keccak256\":\"0xaf28a975a78550e45f65e559a3ad6a5ad43b9b8a37366999abd1b7084eb70721\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)\\n// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.\\n\\npragma solidity ^0.8.20;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set 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(newImplementation.code.length > 0);\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\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\":\"0x32ba59b4b7299237c8ba56319110989d7978a039faf754793064e967e5894418\",\"license\":\"MIT\"},\"src/CCIPReceiverUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { IAny2EVMMessageReceiver } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/interfaces/IAny2EVMMessageReceiver.sol\\\";\\nimport { Client } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\\\";\\nimport { IERC165 } from\\n \\\"@chainlink/contracts-ccip/src/v0.8/vendor/openzeppelin-solidity/v4.8.3/contracts/utils/introspection/IERC165.sol\\\";\\n\\n/// @title CCIPReceiver - Base contract for CCIP applications that can receive messages.\\nabstract contract CCIPReceiverUpgradeable is IAny2EVMMessageReceiver, IERC165 {\\n /// @custom:storage-location erc7201:openzeppelin.storage.Ownable2Step\\n struct CCIPReceiverStorage {\\n address _rounter;\\n }\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"chainlink.storage.CCIPReceiverUpgradeable\\\")) - 1)) &\\n // ~bytes32(uint256(0xff))\\n bytes32 private constant CCIPReceiverStorageLocation =\\n 0xb9605d6807cee7e996cb505aab0fff682142fb832cd7587ec7f7258d80300000;\\n\\n function _getCCIPReceiverStorage() private pure returns (CCIPReceiverStorage storage $) {\\n assembly {\\n $.slot := CCIPReceiverStorageLocation\\n }\\n }\\n\\n function __CCIPReceiver_init(address router) internal {\\n if (router == address(0)) revert InvalidRouter(address(0));\\n _getCCIPReceiverStorage()._rounter = router;\\n }\\n\\n /// @notice IERC165 supports an interfaceId\\n /// @param interfaceId The interfaceId to check\\n /// @return true if the interfaceId is supported\\n /// @dev Should indicate whether the contract implements IAny2EVMMessageReceiver\\n /// e.g. return interfaceId == type(IAny2EVMMessageReceiver).interfaceId || interfaceId == type(IERC165).interfaceId\\n /// This allows CCIP to check if ccipReceive is available before calling it.\\n /// If this returns false or reverts, only tokens are transferred to the receiver.\\n /// If this returns true, tokens are transferred and ccipReceive is called atomically.\\n /// Additionally, if the receiver address does not have code associated with\\n /// it at the time of execution (EXTCODESIZE returns 0), only tokens will be transferred.\\n function supportsInterface(bytes4 interfaceId) public pure virtual override returns (bool) {\\n return interfaceId == type(IAny2EVMMessageReceiver).interfaceId || interfaceId == type(IERC165).interfaceId;\\n }\\n\\n /// @inheritdoc IAny2EVMMessageReceiver\\n function ccipReceive(Client.Any2EVMMessage calldata message) external virtual override onlyRouter {\\n _ccipReceive(message);\\n }\\n\\n /// @notice Override this function in your implementation.\\n /// @param message Any2EVMMessage\\n function _ccipReceive(Client.Any2EVMMessage memory message) internal virtual;\\n\\n /////////////////////////////////////////////////////////////////////\\n // Plumbing\\n /////////////////////////////////////////////////////////////////////\\n\\n /// @notice Return the current router\\n /// @return CCIP router address\\n function getRouter() public view returns (address) {\\n return address(_getCCIPReceiverStorage()._rounter);\\n }\\n\\n error InvalidRouter(address router);\\n\\n /// @dev only calls from the set router are accepted.\\n modifier onlyRouter() {\\n if (msg.sender != address(_getCCIPReceiverStorage()._rounter)) revert InvalidRouter(msg.sender);\\n _;\\n }\\n}\\n\",\"keccak256\":\"0x3e5cfbfea8ac621c074d3eea80f6ca735d6b7784903e013887645691ed41b309\",\"license\":\"MIT\"},\"src/Troy.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\npragma solidity >=0.8.25;\\n\\nimport { UUPSUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol\\\";\\nimport { Ownable2StepUpgradeable } from \\\"@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol\\\";\\nimport { Client } from \\\"@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client.sol\\\";\\nimport { CCIPReceiverUpgradeable } from \\\"./CCIPReceiverUpgradeable.sol\\\";\\n\\ncontract Troy is UUPSUpgradeable, Ownable2StepUpgradeable, CCIPReceiverUpgradeable {\\n struct TroyStorage {\\n uint256 championChainId;\\n uint256 soldierAmount;\\n }\\n\\n event SoldiersArrive(\\n uint256 indexed chainId,\\n uint256 amount,\\n uint256 initChampion,\\n uint256 initAmount,\\n uint256 laterChainpion,\\n uint256 laterAmount\\n );\\n\\n // keccak256(abi.encode(uint256(keccak256(\\\"battleoflayers.storage.troy\\\")) - 1)) & ~ bytes32(uint256(0xff))\\n //\\n bytes32 private constant TroyStorageLocation = 0xdd3df5464778d98b8f59c24d166861cc7b36f749c939a9173f338d95c7f4fe00;\\n\\n function _getTroyStorage() internal pure returns (TroyStorage storage $) {\\n assembly {\\n $.slot := TroyStorageLocation\\n }\\n }\\n\\n function initialize(address owner_, address router_) external initializer {\\n _transferOwnership(owner_);\\n\\n __CCIPReceiver_init(router_);\\n }\\n\\n // only owner can upgrade\\n function _authorizeUpgrade(address newImplementation) internal override onlyOwner { }\\n\\n // handle a received message\\n function _ccipReceive(Client.Any2EVMMessage memory any2EvmMessage) internal override {\\n // logic here\\n (uint256 srcChainId, uint256 incommingSoldierAmount) = abi.decode(any2EvmMessage.data, (uint256, uint256));\\n\\n uint256 championChainId = _getTroyStorage().championChainId;\\n uint256 curSoldierAmount = _getTroyStorage().soldierAmount;\\n\\n if (srcChainId == championChainId) {\\n _getTroyStorage().soldierAmount += incommingSoldierAmount;\\n } else {\\n if (curSoldierAmount >= incommingSoldierAmount) {\\n _getTroyStorage().soldierAmount += incommingSoldierAmount;\\n } else {\\n _getTroyStorage().soldierAmount = incommingSoldierAmount - curSoldierAmount;\\n _getTroyStorage().championChainId = srcChainId;\\n }\\n }\\n\\n emit SoldiersArrive(\\n srcChainId,\\n incommingSoldierAmount,\\n championChainId,\\n curSoldierAmount,\\n _getTroyStorage().championChainId,\\n _getTroyStorage().soldierAmount\\n );\\n }\\n\\n function readStorageValue() public view returns (TroyStorage memory) {\\n return _getTroyStorage();\\n }\\n}\\n\",\"keccak256\":\"0x808e99ae0d8f00d460f6c85b6411b1e58cfb009463cd1d4a148a72a149a44c70\",\"license\":\"UNLICENSED\"}},\"version\":1}",
+ "bytecode": "0x60a06040523073ffffffffffffffffffffffffffffffffffffffff1660809073ffffffffffffffffffffffffffffffffffffffff16815250348015604257600080fd5b50608051611d1c61006c600039600081816109d001528181610a250152610be00152611d1c6000f3fe6080604052600436106100c25760003560e01c806385572ffb1161007f578063b0f479a111610059578063b0f479a114610221578063e30c39781461024c578063f2fde38b14610277578063f4fbc82d146102a0576100c2565b806385572ffb146101a25780638da5cb5b146101cb578063ad3cb1cc146101f6576100c2565b806301ffc9a7146100c7578063485cc955146101045780634f1ef2861461012d57806352d1902d14610149578063715018a61461017457806379ba50971461018b575b600080fd5b3480156100d357600080fd5b506100ee60048036038101906100e9919061134c565b6102cb565b6040516100fb9190611394565b60405180910390f35b34801561011057600080fd5b5061012b6004803603810190610126919061140d565b61039d565b005b61014760048036038101906101429190611593565b610536565b005b34801561015557600080fd5b5061015e610555565b60405161016b9190611608565b60405180910390f35b34801561018057600080fd5b50610189610588565b005b34801561019757600080fd5b506101a061059c565b005b3480156101ae57600080fd5b506101c960048036038101906101c49190611647565b61062b565b005b3480156101d757600080fd5b506101e06106db565b6040516101ed919061169f565b60405180910390f35b34801561020257600080fd5b5061020b610713565b6040516102189190611739565b60405180910390f35b34801561022d57600080fd5b5061023661074c565b604051610243919061169f565b60405180910390f35b34801561025857600080fd5b5061026161077f565b60405161026e919061169f565b60405180910390f35b34801561028357600080fd5b5061029e6004803603810190610299919061175b565b6107b7565b005b3480156102ac57600080fd5b506102b5610873565b6040516102c291906117d0565b60405180910390f35b60007f85572ffb000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061039657507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60006103a76108a7565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156103f55750825b9050600060018367ffffffffffffffff1614801561042a575060003073ffffffffffffffffffffffffffffffffffffffff163b145b905081158015610438575080155b1561046f576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156104bf5760018560000160086101000a81548160ff0219169083151502179055505b6104c8876108cf565b6104d18661090f565b831561052d5760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516105249190611844565b60405180910390a15b50505050505050565b61053e6109ce565b61054782610ab4565b6105518282610abf565b5050565b600061055f610bde565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b610590610c65565b61059a60006108cf565b565b60006105a6610cec565b90508073ffffffffffffffffffffffffffffffffffffffff166105c761077f565b73ffffffffffffffffffffffffffffffffffffffff161461061f57806040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610616919061169f565b60405180910390fd5b610628816108cf565b50565b610633610cf4565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106c657336040517fd7f733340000000000000000000000000000000000000000000000000000000081526004016106bd919061169f565b60405180910390fd5b6106d8816106d390611ae5565b610d1c565b50565b6000806106e6610e41565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b6000610756610cf4565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008061078a610e69565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6107bf610c65565b60006107c9610e69565b9050818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff1661082d6106db565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b61087b6112c6565b610883610e91565b60405180604001604052908160008201548152602001600182015481525050905090565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b60006108d9610e69565b90508060000160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905561090b82610eb9565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109815760006040517fd7f73334000000000000000000000000000000000000000000000000000000008152600401610978919061169f565b60405180910390fd5b8061098a610cf4565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161480610a7b57507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610a62610f90565b73ffffffffffffffffffffffffffffffffffffffff1614155b15610ab2576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610abc610c65565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b2757506040513d601f19601f82011682018060405250810190610b249190611b0d565b60015b610b6857816040517f4c9c8ce3000000000000000000000000000000000000000000000000000000008152600401610b5f919061169f565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114610bcf57806040517faa1d49a4000000000000000000000000000000000000000000000000000000008152600401610bc69190611608565b60405180910390fd5b610bd98383610fe7565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614610c63576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610c6d610cec565b73ffffffffffffffffffffffffffffffffffffffff16610c8b6106db565b73ffffffffffffffffffffffffffffffffffffffff1614610cea57610cae610cec565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610ce1919061169f565b60405180910390fd5b565b600033905090565b60007fb9605d6807cee7e996cb505aab0fff682142fb832cd7587ec7f7258d80300000905090565b6000808260600151806020019051810190610d379190611b4f565b915091506000610d45610e91565b6000015490506000610d55610e91565b600101549050818403610d895782610d6b610e91565b6001016000828254610d7d9190611bbe565b92505081905550610de4565b828110610db75782610d99610e91565b6001016000828254610dab9190611bbe565b92505081905550610de3565b8083610dc39190611bf2565b610dcb610e91565b6001018190555083610ddb610e91565b600001819055505b5b837f9ee8144ef8473ddbca3dcf0ed6023b3a5daf173621e2e073c6946ac72df54147848484610e11610e91565b60000154610e1d610e91565b60010154604051610e32959493929190611c35565b60405180910390a25050505050565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b60007f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00905090565b60007fdd3df5464778d98b8f59c24d166861cc7b36f749c939a9173f338d95c7f4fe00905090565b6000610ec3610e41565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000610fbe7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61105a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610ff082611064565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a260008151111561104d576110478282611131565b50611056565b6110556111b5565b5b5050565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036110c057806040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016110b7919061169f565b60405180910390fd5b806110ed7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61105a565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff168460405161115b9190611ccf565b600060405180830381855af49150503d8060008114611196576040519150601f19603f3d011682016040523d82523d6000602084013e61119b565b606091505b50915091506111ab8583836111f2565b9250505092915050565b60003411156111f0576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6060826112075761120282611281565b611279565b6000825114801561122f575060008473ffffffffffffffffffffffffffffffffffffffff163b145b1561127157836040517f9996b315000000000000000000000000000000000000000000000000000000008152600401611268919061169f565b60405180910390fd5b81905061127a565b5b9392505050565b6000815111156112945780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604051806040016040528060008152602001600081525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611329816112f4565b811461133457600080fd5b50565b60008135905061134681611320565b92915050565b600060208284031215611362576113616112ea565b5b600061137084828501611337565b91505092915050565b60008115159050919050565b61138e81611379565b82525050565b60006020820190506113a96000830184611385565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006113da826113af565b9050919050565b6113ea816113cf565b81146113f557600080fd5b50565b600081359050611407816113e1565b92915050565b60008060408385031215611424576114236112ea565b5b6000611432858286016113f8565b9250506020611443858286016113f8565b9150509250929050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6114a082611457565b810181811067ffffffffffffffff821117156114bf576114be611468565b5b80604052505050565b60006114d26112e0565b90506114de8282611497565b919050565b600067ffffffffffffffff8211156114fe576114fd611468565b5b61150782611457565b9050602081019050919050565b82818337600083830152505050565b6000611536611531846114e3565b6114c8565b90508281526020810184848401111561155257611551611452565b5b61155d848285611514565b509392505050565b600082601f83011261157a5761157961144d565b5b813561158a848260208601611523565b91505092915050565b600080604083850312156115aa576115a96112ea565b5b60006115b8858286016113f8565b925050602083013567ffffffffffffffff8111156115d9576115d86112ef565b5b6115e585828601611565565b9150509250929050565b6000819050919050565b611602816115ef565b82525050565b600060208201905061161d60008301846115f9565b92915050565b600080fd5b600060a0828403121561163e5761163d611623565b5b81905092915050565b60006020828403121561165d5761165c6112ea565b5b600082013567ffffffffffffffff81111561167b5761167a6112ef565b5b61168784828501611628565b91505092915050565b611699816113cf565b82525050565b60006020820190506116b46000830184611690565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156116f45780820151818401526020810190506116d9565b60008484015250505050565b600061170b826116ba565b61171581856116c5565b93506117258185602086016116d6565b61172e81611457565b840191505092915050565b600060208201905081810360008301526117538184611700565b905092915050565b600060208284031215611771576117706112ea565b5b600061177f848285016113f8565b91505092915050565b6000819050919050565b61179b81611788565b82525050565b6040820160008201516117b76000850182611792565b5060208201516117ca6020850182611792565b50505050565b60006040820190506117e560008301846117a1565b92915050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b600061182e611829611824846117eb565b611809565b6117f5565b9050919050565b61183e81611813565b82525050565b60006020820190506118596000830184611835565b92915050565b600080fd5b600080fd5b611872816115ef565b811461187d57600080fd5b50565b60008135905061188f81611869565b92915050565b61189e816117f5565b81146118a957600080fd5b50565b6000813590506118bb81611895565b92915050565b600067ffffffffffffffff8211156118dc576118db611468565b5b602082029050602081019050919050565b600080fd5b6118fb81611788565b811461190657600080fd5b50565b600081359050611918816118f2565b92915050565b6000604082840312156119345761193361185f565b5b61193e60406114c8565b9050600061194e848285016113f8565b600083015250602061196284828501611909565b60208301525092915050565b600061198161197c846118c1565b6114c8565b905080838252602082019050604084028301858111156119a4576119a36118ed565b5b835b818110156119cd57806119b9888261191e565b8452602084019350506040810190506119a6565b5050509392505050565b600082601f8301126119ec576119eb61144d565b5b81356119fc84826020860161196e565b91505092915050565b600060a08284031215611a1b57611a1a61185f565b5b611a2560a06114c8565b90506000611a3584828501611880565b6000830152506020611a49848285016118ac565b602083015250604082013567ffffffffffffffff811115611a6d57611a6c611864565b5b611a7984828501611565565b604083015250606082013567ffffffffffffffff811115611a9d57611a9c611864565b5b611aa984828501611565565b606083015250608082013567ffffffffffffffff811115611acd57611acc611864565b5b611ad9848285016119d7565b60808301525092915050565b6000611af13683611a05565b9050919050565b600081519050611b0781611869565b92915050565b600060208284031215611b2357611b226112ea565b5b6000611b3184828501611af8565b91505092915050565b600081519050611b49816118f2565b92915050565b60008060408385031215611b6657611b656112ea565b5b6000611b7485828601611b3a565b9250506020611b8585828601611b3a565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611bc982611788565b9150611bd483611788565b9250828201905080821115611bec57611beb611b8f565b5b92915050565b6000611bfd82611788565b9150611c0883611788565b9250828203905081811115611c2057611c1f611b8f565b5b92915050565b611c2f81611788565b82525050565b600060a082019050611c4a6000830188611c26565b611c576020830187611c26565b611c646040830186611c26565b611c716060830185611c26565b611c7e6080830184611c26565b9695505050505050565b600081519050919050565b600081905092915050565b6000611ca982611c88565b611cb38185611c93565b9350611cc38185602086016116d6565b80840191505092915050565b6000611cdb8284611c9e565b91508190509291505056fea264697066735822122011882c2ae8a31317f2b8dfeaddd4324934891c58d9c8c1f3c2efa6d6beed1bdd64736f6c63430008190033",
+ "deployedBytecode": "0x6080604052600436106100c25760003560e01c806385572ffb1161007f578063b0f479a111610059578063b0f479a114610221578063e30c39781461024c578063f2fde38b14610277578063f4fbc82d146102a0576100c2565b806385572ffb146101a25780638da5cb5b146101cb578063ad3cb1cc146101f6576100c2565b806301ffc9a7146100c7578063485cc955146101045780634f1ef2861461012d57806352d1902d14610149578063715018a61461017457806379ba50971461018b575b600080fd5b3480156100d357600080fd5b506100ee60048036038101906100e9919061134c565b6102cb565b6040516100fb9190611394565b60405180910390f35b34801561011057600080fd5b5061012b6004803603810190610126919061140d565b61039d565b005b61014760048036038101906101429190611593565b610536565b005b34801561015557600080fd5b5061015e610555565b60405161016b9190611608565b60405180910390f35b34801561018057600080fd5b50610189610588565b005b34801561019757600080fd5b506101a061059c565b005b3480156101ae57600080fd5b506101c960048036038101906101c49190611647565b61062b565b005b3480156101d757600080fd5b506101e06106db565b6040516101ed919061169f565b60405180910390f35b34801561020257600080fd5b5061020b610713565b6040516102189190611739565b60405180910390f35b34801561022d57600080fd5b5061023661074c565b604051610243919061169f565b60405180910390f35b34801561025857600080fd5b5061026161077f565b60405161026e919061169f565b60405180910390f35b34801561028357600080fd5b5061029e6004803603810190610299919061175b565b6107b7565b005b3480156102ac57600080fd5b506102b5610873565b6040516102c291906117d0565b60405180910390f35b60007f85572ffb000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061039657507f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60006103a76108a7565b905060008160000160089054906101000a900460ff1615905060008260000160009054906101000a900467ffffffffffffffff1690506000808267ffffffffffffffff161480156103f55750825b9050600060018367ffffffffffffffff1614801561042a575060003073ffffffffffffffffffffffffffffffffffffffff163b145b905081158015610438575080155b1561046f576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60018560000160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083156104bf5760018560000160086101000a81548160ff0219169083151502179055505b6104c8876108cf565b6104d18661090f565b831561052d5760008560000160086101000a81548160ff0219169083151502179055507fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d260016040516105249190611844565b60405180910390a15b50505050505050565b61053e6109ce565b61054782610ab4565b6105518282610abf565b5050565b600061055f610bde565b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b905090565b610590610c65565b61059a60006108cf565b565b60006105a6610cec565b90508073ffffffffffffffffffffffffffffffffffffffff166105c761077f565b73ffffffffffffffffffffffffffffffffffffffff161461061f57806040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610616919061169f565b60405180910390fd5b610628816108cf565b50565b610633610cf4565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146106c657336040517fd7f733340000000000000000000000000000000000000000000000000000000081526004016106bd919061169f565b60405180910390fd5b6106d8816106d390611ae5565b610d1c565b50565b6000806106e6610e41565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6040518060400160405280600581526020017f352e302e3000000000000000000000000000000000000000000000000000000081525081565b6000610756610cf4565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008061078a610e69565b90508060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1691505090565b6107bf610c65565b60006107c9610e69565b9050818160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff1661082d6106db565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a35050565b61087b6112c6565b610883610e91565b60405180604001604052908160008201548152602001600182015481525050905090565b60007ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00905090565b60006108d9610e69565b90508060000160006101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905561090b82610eb9565b5050565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036109815760006040517fd7f73334000000000000000000000000000000000000000000000000000000008152600401610978919061169f565b60405180910390fd5b8061098a610cf4565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff161480610a7b57507f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16610a62610f90565b73ffffffffffffffffffffffffffffffffffffffff1614155b15610ab2576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610abc610c65565b50565b8173ffffffffffffffffffffffffffffffffffffffff166352d1902d6040518163ffffffff1660e01b8152600401602060405180830381865afa925050508015610b2757506040513d601f19601f82011682018060405250810190610b249190611b0d565b60015b610b6857816040517f4c9c8ce3000000000000000000000000000000000000000000000000000000008152600401610b5f919061169f565b60405180910390fd5b7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b8114610bcf57806040517faa1d49a4000000000000000000000000000000000000000000000000000000008152600401610bc69190611608565b60405180910390fd5b610bd98383610fe7565b505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff163073ffffffffffffffffffffffffffffffffffffffff1614610c63576040517fe07c8dba00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b610c6d610cec565b73ffffffffffffffffffffffffffffffffffffffff16610c8b6106db565b73ffffffffffffffffffffffffffffffffffffffff1614610cea57610cae610cec565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401610ce1919061169f565b60405180910390fd5b565b600033905090565b60007fb9605d6807cee7e996cb505aab0fff682142fb832cd7587ec7f7258d80300000905090565b6000808260600151806020019051810190610d379190611b4f565b915091506000610d45610e91565b6000015490506000610d55610e91565b600101549050818403610d895782610d6b610e91565b6001016000828254610d7d9190611bbe565b92505081905550610de4565b828110610db75782610d99610e91565b6001016000828254610dab9190611bbe565b92505081905550610de3565b8083610dc39190611bf2565b610dcb610e91565b6001018190555083610ddb610e91565b600001819055505b5b837f9ee8144ef8473ddbca3dcf0ed6023b3a5daf173621e2e073c6946ac72df54147848484610e11610e91565b60000154610e1d610e91565b60010154604051610e32959493929190611c35565b60405180910390a25050505050565b60007f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300905090565b60007f237e158222e3e6968b72b9db0d8043aacf074ad9f650f0d1606b4d82ee432c00905090565b60007fdd3df5464778d98b8f59c24d166861cc7b36f749c939a9173f338d95c7f4fe00905090565b6000610ec3610e41565b905060008160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050828260000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3505050565b6000610fbe7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61105a565b60000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610ff082611064565b8173ffffffffffffffffffffffffffffffffffffffff167fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b60405160405180910390a260008151111561104d576110478282611131565b50611056565b6110556111b5565b5b5050565b6000819050919050565b60008173ffffffffffffffffffffffffffffffffffffffff163b036110c057806040517f4c9c8ce30000000000000000000000000000000000000000000000000000000081526004016110b7919061169f565b60405180910390fd5b806110ed7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc60001b61105a565b60000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60606000808473ffffffffffffffffffffffffffffffffffffffff168460405161115b9190611ccf565b600060405180830381855af49150503d8060008114611196576040519150601f19603f3d011682016040523d82523d6000602084013e61119b565b606091505b50915091506111ab8583836111f2565b9250505092915050565b60003411156111f0576040517fb398979f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6060826112075761120282611281565b611279565b6000825114801561122f575060008473ffffffffffffffffffffffffffffffffffffffff163b145b1561127157836040517f9996b315000000000000000000000000000000000000000000000000000000008152600401611268919061169f565b60405180910390fd5b81905061127a565b5b9392505050565b6000815111156112945780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b604051806040016040528060008152602001600081525090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b611329816112f4565b811461133457600080fd5b50565b60008135905061134681611320565b92915050565b600060208284031215611362576113616112ea565b5b600061137084828501611337565b91505092915050565b60008115159050919050565b61138e81611379565b82525050565b60006020820190506113a96000830184611385565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006113da826113af565b9050919050565b6113ea816113cf565b81146113f557600080fd5b50565b600081359050611407816113e1565b92915050565b60008060408385031215611424576114236112ea565b5b6000611432858286016113f8565b9250506020611443858286016113f8565b9150509250929050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6114a082611457565b810181811067ffffffffffffffff821117156114bf576114be611468565b5b80604052505050565b60006114d26112e0565b90506114de8282611497565b919050565b600067ffffffffffffffff8211156114fe576114fd611468565b5b61150782611457565b9050602081019050919050565b82818337600083830152505050565b6000611536611531846114e3565b6114c8565b90508281526020810184848401111561155257611551611452565b5b61155d848285611514565b509392505050565b600082601f83011261157a5761157961144d565b5b813561158a848260208601611523565b91505092915050565b600080604083850312156115aa576115a96112ea565b5b60006115b8858286016113f8565b925050602083013567ffffffffffffffff8111156115d9576115d86112ef565b5b6115e585828601611565565b9150509250929050565b6000819050919050565b611602816115ef565b82525050565b600060208201905061161d60008301846115f9565b92915050565b600080fd5b600060a0828403121561163e5761163d611623565b5b81905092915050565b60006020828403121561165d5761165c6112ea565b5b600082013567ffffffffffffffff81111561167b5761167a6112ef565b5b61168784828501611628565b91505092915050565b611699816113cf565b82525050565b60006020820190506116b46000830184611690565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156116f45780820151818401526020810190506116d9565b60008484015250505050565b600061170b826116ba565b61171581856116c5565b93506117258185602086016116d6565b61172e81611457565b840191505092915050565b600060208201905081810360008301526117538184611700565b905092915050565b600060208284031215611771576117706112ea565b5b600061177f848285016113f8565b91505092915050565b6000819050919050565b61179b81611788565b82525050565b6040820160008201516117b76000850182611792565b5060208201516117ca6020850182611792565b50505050565b60006040820190506117e560008301846117a1565b92915050565b6000819050919050565b600067ffffffffffffffff82169050919050565b6000819050919050565b600061182e611829611824846117eb565b611809565b6117f5565b9050919050565b61183e81611813565b82525050565b60006020820190506118596000830184611835565b92915050565b600080fd5b600080fd5b611872816115ef565b811461187d57600080fd5b50565b60008135905061188f81611869565b92915050565b61189e816117f5565b81146118a957600080fd5b50565b6000813590506118bb81611895565b92915050565b600067ffffffffffffffff8211156118dc576118db611468565b5b602082029050602081019050919050565b600080fd5b6118fb81611788565b811461190657600080fd5b50565b600081359050611918816118f2565b92915050565b6000604082840312156119345761193361185f565b5b61193e60406114c8565b9050600061194e848285016113f8565b600083015250602061196284828501611909565b60208301525092915050565b600061198161197c846118c1565b6114c8565b905080838252602082019050604084028301858111156119a4576119a36118ed565b5b835b818110156119cd57806119b9888261191e565b8452602084019350506040810190506119a6565b5050509392505050565b600082601f8301126119ec576119eb61144d565b5b81356119fc84826020860161196e565b91505092915050565b600060a08284031215611a1b57611a1a61185f565b5b611a2560a06114c8565b90506000611a3584828501611880565b6000830152506020611a49848285016118ac565b602083015250604082013567ffffffffffffffff811115611a6d57611a6c611864565b5b611a7984828501611565565b604083015250606082013567ffffffffffffffff811115611a9d57611a9c611864565b5b611aa984828501611565565b606083015250608082013567ffffffffffffffff811115611acd57611acc611864565b5b611ad9848285016119d7565b60808301525092915050565b6000611af13683611a05565b9050919050565b600081519050611b0781611869565b92915050565b600060208284031215611b2357611b226112ea565b5b6000611b3184828501611af8565b91505092915050565b600081519050611b49816118f2565b92915050565b60008060408385031215611b6657611b656112ea565b5b6000611b7485828601611b3a565b9250506020611b8585828601611b3a565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611bc982611788565b9150611bd483611788565b9250828201905080821115611bec57611beb611b8f565b5b92915050565b6000611bfd82611788565b9150611c0883611788565b9250828203905081811115611c2057611c1f611b8f565b5b92915050565b611c2f81611788565b82525050565b600060a082019050611c4a6000830188611c26565b611c576020830187611c26565b611c646040830186611c26565b611c716060830185611c26565b611c7e6080830184611c26565b9695505050505050565b600081519050919050565b600081905092915050565b6000611ca982611c88565b611cb38185611c93565b9350611cc38185602086016116d6565b80840191505092915050565b6000611cdb8284611c9e565b91508190509291505056fea264697066735822122011882c2ae8a31317f2b8dfeaddd4324934891c58d9c8c1f3c2efa6d6beed1bdd64736f6c63430008190033",
"devdoc": {
"errors": {
"AddressEmptyCode(address)": [
diff --git a/packages/contracts/deployments/sepolia/Troy_Proxy.json b/packages/contracts/deployments/sepolia/Troy_Proxy.json
index cd9e7eb..a3afedd 100644
--- a/packages/contracts/deployments/sepolia/Troy_Proxy.json
+++ b/packages/contracts/deployments/sepolia/Troy_Proxy.json
@@ -1,5 +1,5 @@
{
- "address": "0x60688B3bA8816B4003B72f9b3927c3Bb8E598005",
+ "address": "0x10d5617ef73E62545F45017A0F85847c081b9fcE",
"abi": [
{
"inputs": [
@@ -71,64 +71,64 @@
"type": "receive"
}
],
- "transactionHash": "0x170501cd04790ec32913e2296585170d689c07dbdbf531980ca1898a29bd2eb8",
+ "transactionHash": "0x50889835c8585e2070ce94f7809b6c949cc3cbb86b2baa920f0ccb9b1b0d12a0",
"receipt": {
"to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
"from": "0xba45b3d7A42c3554fa98bDC3F790da2676Cb0560",
"contractAddress": null,
- "transactionIndex": 24,
- "gasUsed": "328444",
- "logsBloom": "0x00000000000000000000000000000000400020000000000000800000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000001000000000000000000000000000000000000020000000000000000000800000000000000000000000000000000400000000000000000000800000000000000000000000080000000000000000000000000000000000100000000000000000000000000000000000000000000000000000020000000000000000000000000000000000014000400020000000020000000000000000800020000000000000000000000000000000000000002000000",
- "blockHash": "0xafecf8587b06ac49aac0ca5930fffeead4d22c9fd8ed07149f3c7a47761aae09",
- "transactionHash": "0x170501cd04790ec32913e2296585170d689c07dbdbf531980ca1898a29bd2eb8",
+ "transactionIndex": 38,
+ "gasUsed": "328456",
+ "logsBloom": "0x00000000000000000000000000000000400000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100002000001000000000000000000000000000000080000020000000000000000000800000000000000000000000000000000400000000000000000000800000000000000000000000080000000040200000000000000000000000100000000000000000000000000000000000000000000000000000020008000000000000000000000000000000004000400020000000020000000000000000000000000000001000000000000000000000000000000000000",
+ "blockHash": "0xf6a23e0be2b14a0e4d4be339472640e8cc73330fd6ed8553c5c92eace0823208",
+ "transactionHash": "0x50889835c8585e2070ce94f7809b6c949cc3cbb86b2baa920f0ccb9b1b0d12a0",
"logs": [
{
- "transactionIndex": 24,
- "blockNumber": 5689210,
- "transactionHash": "0x170501cd04790ec32913e2296585170d689c07dbdbf531980ca1898a29bd2eb8",
- "address": "0x60688B3bA8816B4003B72f9b3927c3Bb8E598005",
+ "transactionIndex": 38,
+ "blockNumber": 5691716,
+ "transactionHash": "0x50889835c8585e2070ce94f7809b6c949cc3cbb86b2baa920f0ccb9b1b0d12a0",
+ "address": "0x10d5617ef73E62545F45017A0F85847c081b9fcE",
"topics": [
"0xbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b",
- "0x000000000000000000000000204504a8bcebc5a30789d99e20a4a84e55bb10c7"
+ "0x0000000000000000000000002b4899c7316cc7d15301dbd0a5d7204456d3b441"
],
"data": "0x",
- "logIndex": 12,
- "blockHash": "0xafecf8587b06ac49aac0ca5930fffeead4d22c9fd8ed07149f3c7a47761aae09"
+ "logIndex": 34,
+ "blockHash": "0xf6a23e0be2b14a0e4d4be339472640e8cc73330fd6ed8553c5c92eace0823208"
},
{
- "transactionIndex": 24,
- "blockNumber": 5689210,
- "transactionHash": "0x170501cd04790ec32913e2296585170d689c07dbdbf531980ca1898a29bd2eb8",
- "address": "0x60688B3bA8816B4003B72f9b3927c3Bb8E598005",
+ "transactionIndex": 38,
+ "blockNumber": 5691716,
+ "transactionHash": "0x50889835c8585e2070ce94f7809b6c949cc3cbb86b2baa920f0ccb9b1b0d12a0",
+ "address": "0x10d5617ef73E62545F45017A0F85847c081b9fcE",
"topics": [
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb0560"
],
"data": "0x",
- "logIndex": 13,
- "blockHash": "0xafecf8587b06ac49aac0ca5930fffeead4d22c9fd8ed07149f3c7a47761aae09"
+ "logIndex": 35,
+ "blockHash": "0xf6a23e0be2b14a0e4d4be339472640e8cc73330fd6ed8553c5c92eace0823208"
},
{
- "transactionIndex": 24,
- "blockNumber": 5689210,
- "transactionHash": "0x170501cd04790ec32913e2296585170d689c07dbdbf531980ca1898a29bd2eb8",
- "address": "0x60688B3bA8816B4003B72f9b3927c3Bb8E598005",
+ "transactionIndex": 38,
+ "blockNumber": 5691716,
+ "transactionHash": "0x50889835c8585e2070ce94f7809b6c949cc3cbb86b2baa920f0ccb9b1b0d12a0",
+ "address": "0x10d5617ef73E62545F45017A0F85847c081b9fcE",
"topics": [
"0xc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000001",
- "logIndex": 14,
- "blockHash": "0xafecf8587b06ac49aac0ca5930fffeead4d22c9fd8ed07149f3c7a47761aae09"
+ "logIndex": 36,
+ "blockHash": "0xf6a23e0be2b14a0e4d4be339472640e8cc73330fd6ed8553c5c92eace0823208"
}
],
- "blockNumber": 5689210,
- "cumulativeGasUsed": "2552455",
+ "blockNumber": 5691716,
+ "cumulativeGasUsed": "6921836",
"status": 1,
"byzantium": true
},
"args": [
- "0x204504A8BceBc5a30789D99E20A4a84e55BB10c7",
+ "0x2B4899c7316cc7d15301dbD0A5D7204456D3B441",
"0x485cc955000000000000000000000000ba45b3d7a42c3554fa98bdc3f790da2676cb05600000000000000000000000000bf3de8c5d3e8a2b34d2beeb17abfcebaf363a59"
],
"numDeployments": 1,
diff --git a/packages/contracts/hardhat.config.ts b/packages/contracts/hardhat.config.ts
index b9ab545..d6becd1 100644
--- a/packages/contracts/hardhat.config.ts
+++ b/packages/contracts/hardhat.config.ts
@@ -44,9 +44,9 @@ const config: HardhatUserConfig = {
url: node_url("arb_sepolia"),
accounts: accounts("arb_sepolia"),
},
- fujin: {
- url: node_url("fujin"),
- accounts: accounts("fujin"),
+ fuji: {
+ url: node_url("fuji"),
+ accounts: accounts("fuji"),
},
bnb_test: {
url: node_url("bnb_test"),
diff --git a/packages/contracts/src/TrajonHorse.sol b/packages/contracts/src/TrojanHorse.sol
similarity index 72%
rename from packages/contracts/src/TrajonHorse.sol
rename to packages/contracts/src/TrojanHorse.sol
index 012153e..0833c50 100644
--- a/packages/contracts/src/TrajonHorse.sol
+++ b/packages/contracts/src/TrojanHorse.sol
@@ -8,7 +8,7 @@ import { Client } from "@chainlink/contracts-ccip/src/v0.8/ccip/libraries/Client
import { LinkTokenInterface } from "@chainlink/contracts/src/v0.8/shared/interfaces/LinkTokenInterface.sol";
import { AggregatorV3Interface } from "@chainlink/contracts/src/v0.8/shared/interfaces/AggregatorV3Interface.sol";
-contract TrajonHorse is UUPSUpgradeable, Ownable2StepUpgradeable {
+contract TrojanHorse is UUPSUpgradeable, Ownable2StepUpgradeable {
struct TrajonHorseStorage {
IRouterClient router;
AggregatorV3Interface aggregator;
@@ -62,7 +62,7 @@ contract TrajonHorse is UUPSUpgradeable, Ownable2StepUpgradeable {
function sendHorse(uint256 fundForSoldiers) external payable onlyOwner returns (bytes32 messageId) {
(, int256 answer,,,) = _getTrajanHorseStorage().aggregator.latestRoundData();
uint8 decimal = _getTrajanHorseStorage().aggregator.decimals();
- uint256 soldierAmount = fundForSoldiers * 10 ** decimal / uint256(answer);
+ uint256 soldierAmount = fundForSoldiers * uint256(answer) / (10 ** decimal * 1 ether);
address receiver = _getTrajanHorseStorage().receiver;
uint64 destinationChainSelector = _getTrajanHorseStorage().destinationChainSelector;
@@ -99,4 +99,32 @@ contract TrajonHorse is UUPSUpgradeable, Ownable2StepUpgradeable {
// Return the message ID
return messageId;
}
+
+ function getFee(uint256 fundForSoldiers) public view returns (uint256 fees, uint256 soldierAmount) {
+ (, int256 answer,,,) = _getTrajanHorseStorage().aggregator.latestRoundData();
+ uint8 decimal = _getTrajanHorseStorage().aggregator.decimals();
+ soldierAmount = fundForSoldiers * uint256(answer) / (10 ** decimal * 1 ether);
+
+ address receiver = _getTrajanHorseStorage().receiver;
+ uint64 destinationChainSelector = _getTrajanHorseStorage().destinationChainSelector;
+
+ // encode data
+ bytes memory data = abi.encode(block.chainid, soldierAmount);
+
+ // Create an EVM2AnyMessage struct in memory with necessary information for sending a cross-chain message
+ Client.EVM2AnyMessage memory evm2AnyMessage = Client.EVM2AnyMessage({
+ receiver: abi.encode(receiver), // ABI-encoded
+ data: data, // ABI-encoded string
+ tokenAmounts: new Client.EVMTokenAmount[](0), // Empty array indicating no tokens are being sent
+ extraArgs: Client._argsToBytes(
+ // Additional arguments, setting gas limit
+ Client.EVMExtraArgsV1({ gasLimit: 200_000 })
+ ),
+ // Set the feeToken address, use native token
+ feeToken: address(0)
+ });
+
+ // Get the fee required to send the message
+ fees = _getTrajanHorseStorage().router.getFee(destinationChainSelector, evm2AnyMessage);
+ }
}
diff --git a/packages/contracts/src/Troy.sol b/packages/contracts/src/Troy.sol
index 5b8d3cc..6012e20 100644
--- a/packages/contracts/src/Troy.sol
+++ b/packages/contracts/src/Troy.sol
@@ -68,4 +68,8 @@ contract Troy is UUPSUpgradeable, Ownable2StepUpgradeable, CCIPReceiverUpgradeab
_getTroyStorage().soldierAmount
);
}
+
+ function readStorageValue() public view returns (TroyStorage memory) {
+ return _getTroyStorage();
+ }
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index aa05594..1629f97 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -16,6 +16,9 @@ importers:
'@tanstack/react-query':
specifier: ^5.29.2
version: 5.29.2(react@18.2.0)
+ autoprefixer:
+ specifier: ^10.4.19
+ version: 10.4.19(postcss@8.4.38)
class-variance-authority:
specifier: ^0.7.0
version: 0.7.0
@@ -5554,6 +5557,22 @@ packages:
engines: {node: '>=8.0.0'}
dev: false
+ /autoprefixer@10.4.19(postcss@8.4.38):
+ resolution: {integrity: sha512-BaENR2+zBZ8xXhM4pUaKUxlVdxZ0EZhjvbopwnXmxRUfqDmwSpC2lAi/QXvx7NRdPCo1WKEcEF6mV64si1z4Ew==}
+ engines: {node: ^10 || ^12 || >=14}
+ hasBin: true
+ peerDependencies:
+ postcss: ^8.1.0
+ dependencies:
+ browserslist: 4.23.0
+ caniuse-lite: 1.0.30001609
+ fraction.js: 4.3.7
+ normalize-range: 0.1.2
+ picocolors: 1.0.0
+ postcss: 8.4.38
+ postcss-value-parser: 4.2.0
+ dev: false
+
/available-typed-arrays@1.0.7:
resolution: {integrity: sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ==}
engines: {node: '>= 0.4'}
@@ -7564,6 +7583,10 @@ packages:
resolution: {integrity: sha512-H5KQDspykdHuztLTg+ajGN0Z2qUjcEf3Ybxc6hLt0k7/zPkn29XnKnxlBPyW2XIddWrGaJBzBl4VLYOtk39yZg==}
dev: false
+ /fraction.js@4.3.7:
+ resolution: {integrity: sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==}
+ dev: false
+
/framer-motion@6.5.1(react-dom@18.2.0)(react@18.2.0):
resolution: {integrity: sha512-o1BGqqposwi7cgDrtg0dNONhkmPsUFDaLcKXigzuTFC5x58mE8iyTazxSudFzmT6MEyJKfjjU8ItoMe3W+3fiw==}
peerDependencies:
@@ -9670,6 +9693,11 @@ packages:
resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
engines: {node: '>=0.10.0'}
+ /normalize-range@0.1.2:
+ resolution: {integrity: sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==}
+ engines: {node: '>=0.10.0'}
+ dev: false
+
/npm-run-path@4.0.1:
resolution: {integrity: sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==}
engines: {node: '>=8'}