diff --git a/.gitignore b/.gitignore index 482352c..53107fa 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ # Compiler files cache/ out/ +broadcast/* # Ignores development broadcast logs !/broadcast diff --git a/README.md b/README.md index f044f0b..9552e4d 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,22 @@ Idle game & shitcoin advanture dedicated to cohort VII of Raid Guild. ### 1. Run `anvil` to setup local RPC as a fork of base mainnet -`anvil --block-time 5 --rpc-url ` +`anvil --fork-url --block-time 10 --chain-id 31337` -You can get a free rpc url by registering with https://alchemy.com and creating and app +You can get a free rpc url by registering with https://alchemy.com and creating an app + +Be sure to set --chain-id to 31337 if you are forking mainnet base, otherwise it will deploy with Base chain id and metamask will glitch out. ### 2. Deploy contract -Either use `./deploy_contract.sh` script (!! change contract values and set private key to $DEV_PRIVATE_KEY for it to work) or call those things by hand. +Use `./deploy_contract.sh` script + +This will deploy the contract and give you ETH and DAO Token (RGCVII) funds. + +1. Make sure to change `DEV_WALLET` var to your own. +2. Make sure you have your private key on `DEV_PRIVATE_KEY` environment variable + +Alternatively, check the script and run the steps as you see fit. ### 3. Run dev app @@ -20,8 +29,16 @@ Move to `app` dir, install deps via `npm install` and run `npm run dev` to start #### 3. 1. Point Metamask to Anvil network for local dev +Add network `http://127.0.0.1:8545` with chain id `31337` + #### 3. 2. Change `app/contract_address.ts` to match your program address if needed +#### 3. 3. Reset metamask transaction history between anvil deployments + +If u re-run `anvil` and redeploy the contract, do clear your history in Metamask under Advanced Settings, otherwise Metamask glitches because of its cache (?) + ### 4. Fork tests -forge test --rpc-url +Run `forge test --rpc-url ` + +You can get a free rpc url by registering with https://alchemy.com and creating an app diff --git a/app/contract_address.ts b/app/contract_address.ts index 5eaa84e..620cb43 100644 --- a/app/contract_address.ts +++ b/app/contract_address.ts @@ -1,4 +1,8 @@ -const contractAddress = "0xb2fc8F28aD37290245241C6cb0E411c9fff6A1d7"; +import { Address } from "viem" +const contracts: Record = { + contractAddress: "0xbd06B0878888bf4c6895704fa603a5ADf7e65c66", + daoTokenAddress: "0x11dC980faf34A1D082Ae8A6a883db3A950a3c6E8" +} -export default contractAddress +export default contracts diff --git a/app/public/loader/hamster.png b/app/public/loader/hamster.png new file mode 100644 index 0000000..7766764 Binary files /dev/null and b/app/public/loader/hamster.png differ diff --git a/app/public/loader/hamster_stand.png b/app/public/loader/hamster_stand.png new file mode 100644 index 0000000..d5c0a02 Binary files /dev/null and b/app/public/loader/hamster_stand.png differ diff --git a/app/public/loader/hamster_wheel.png b/app/public/loader/hamster_wheel.png new file mode 100644 index 0000000..6787456 Binary files /dev/null and b/app/public/loader/hamster_wheel.png differ diff --git a/app/src/components/Header.tsx b/app/src/components/Header.tsx index cf88274..60eecdf 100644 --- a/app/src/components/Header.tsx +++ b/app/src/components/Header.tsx @@ -5,10 +5,12 @@ import { usePlayer } from "../providers/PlayerProvider"; import { useAccount } from 'wagmi'; import dynamic from "next/dynamic"; import Counter, { toReadable } from "./Counter"; +import { useModal } from "../providers/ModalProvider"; const Header = () => { const { isConnected } = useAccount(); - const { isRegistered, register, army } = usePlayer(); + const { isRegistered, army } = usePlayer(); + const { openRegistrationModal } = useModal(); const title = useMemo(() => { return isRegistered ? `SLAY THE MOLOCH` : @@ -33,8 +35,8 @@ const Header = () => { const onRegister = useCallback(() => { if (isRegistered) return - register(); - }, [isRegistered, register]) + openRegistrationModal() + }, [isRegistered, openRegistrationModal]) return

{title}

diff --git a/app/src/components/RegistrationModal.tsx b/app/src/components/RegistrationModal.tsx new file mode 100644 index 0000000..0161a9e --- /dev/null +++ b/app/src/components/RegistrationModal.tsx @@ -0,0 +1,26 @@ +import { useCallback } from "react"; +import { usePlayer } from "../providers/PlayerProvider"; +import styles from "../styles/Modal.module.css"; + +interface RegistrationModalProps { + isOpen: boolean; + setIsOpen: (val: boolean) => void +} + +const RegistrationModal = ({ isOpen, setIsOpen }: RegistrationModalProps) => { + const { register } = usePlayer() + const onRegister = useCallback((mode: "ETH" | "RGCVII") => { + register(mode); + setIsOpen(false); + }, [register, setIsOpen]) + if (!isOpen) return null; + return
+

Insert coins to continue

+
+ + +
+
+} + +export default RegistrationModal diff --git a/app/src/components/WaitingForTxModal.tsx b/app/src/components/WaitingForTxModal.tsx new file mode 100644 index 0000000..be8ccde --- /dev/null +++ b/app/src/components/WaitingForTxModal.tsx @@ -0,0 +1,31 @@ +import { useEffect } from "react"; +import { Hash } from "viem" +import { useWaitForTransactionReceipt } from "wagmi"; +import styles from "../styles/Modal.module.css" + +interface WaitingForTxModalProps { + hash: Hash, + callbackFn: () => void; +} + +const WaitingForTxModal = ({ + hash, + callbackFn +}: WaitingForTxModalProps) => { + const { isFetched } = useWaitForTransactionReceipt({ hash }) + useEffect(() => { + if (isFetched) { + callbackFn() + } + }, [isFetched, callbackFn]) + return
+
+
+
+
+
+

Writing contract ...

+
+} + +export default WaitingForTxModal diff --git a/app/src/pages/_app.tsx b/app/src/pages/_app.tsx index 1f69bf4..6340077 100644 --- a/app/src/pages/_app.tsx +++ b/app/src/pages/_app.tsx @@ -7,6 +7,7 @@ import { RainbowKitProvider, midnightTheme } from '@rainbow-me/rainbowkit'; import { config } from '../wagmi'; import { Texturina } from 'next/font/google' import PlayerProvider from '../providers/PlayerProvider'; +import ModalProvider from '../providers/ModalProvider'; const client = new QueryClient(); const font = Texturina({ weight: ['400'], subsets: ["latin"] }) @@ -17,7 +18,7 @@ function MyApp({ Component, pageProps }: AppProps) { - + + + diff --git a/app/src/providers/ModalProvider.tsx b/app/src/providers/ModalProvider.tsx new file mode 100644 index 0000000..058ae10 --- /dev/null +++ b/app/src/providers/ModalProvider.tsx @@ -0,0 +1,33 @@ +import React, { createContext, ReactNode, useCallback, useContext, useState } from 'react' +import RegistrationModal from '../components/RegistrationModal'; + + +export interface PlayerContextType { + openRegistrationModal: () => void +} + +const ModalContext = createContext({ + openRegistrationModal: () => { } +}); + +const ModalProvider = ({ children }: { children: ReactNode }) => { + const [registrationModalOpen, setIsRegistrationModalOpen] = useState(false) + const openRegistrationModal = useCallback(() => { + setIsRegistrationModalOpen(true) + }, []) + return ( + + {children} + + + ); +} + +export const useModal = () => { + return useContext(ModalContext); +} + +export default ModalProvider + diff --git a/app/src/providers/PlayerProvider.tsx b/app/src/providers/PlayerProvider.tsx index 824cce3..f0d38f3 100644 --- a/app/src/providers/PlayerProvider.tsx +++ b/app/src/providers/PlayerProvider.tsx @@ -1,9 +1,11 @@ -import React, { createContext, ReactNode, useCallback, useContext, useEffect } from 'react' +import React, { createContext, ReactNode, useCallback, useContext, useEffect, useState } from 'react' import { useAccount, useReadContract, useWriteContract } from 'wagmi' import contractAbi from "../../../out/RaidGeld.sol/RaidGeld.json" -import { parseEther } from 'viem' -import contractAddress from '../../contract_address' +import { Hash, parseEther } from 'viem' +import contracts from '../../contract_address' +import WaitingForTxModal from '../components/WaitingForTxModal' +const { contractAddress, daoTokenAddress } = contracts const abi = contractAbi.abi export type UnitType = 0 | 1 | 2 | 3 @@ -26,7 +28,7 @@ export interface PlayerContextType { player: null | Player, army: null | Army, balance: bigint, - register: () => void, + register: (arg: "ETH" | "RGCVII") => void, raid: () => void, addUnit: (unit: UnitType) => void } @@ -44,11 +46,16 @@ const PlayerContext = createContext({ const PlayerProvider = ({ children }: { children: ReactNode }) => { const { address, isConnected } = useAccount(); const { writeContract, error } = useWriteContract(); + const [[txHash, callbackFn], setHashAndCallback] = useState<[Hash | null, () => void]>([null, () => { }]) useEffect(() => { console.warn(error) }, [error]) + const resetHashAndCallback = useCallback(() => { + setHashAndCallback([null, () => { }]) + }, []) + const { data: isRegistered } = useReadContract({ address: contractAddress, abi, @@ -56,7 +63,7 @@ const PlayerProvider = ({ children }: { children: ReactNode }) => { args: [address], query: { enabled: isConnected, - refetchInterval: 5, + refetchInterval: 15, } }); @@ -66,7 +73,7 @@ const PlayerProvider = ({ children }: { children: ReactNode }) => { functionName: 'balanceOf', args: [address], query: { - refetchInterval: 5, + refetchInterval: 15, enabled: isConnected } }); @@ -95,14 +102,42 @@ const PlayerProvider = ({ children }: { children: ReactNode }) => { console.log(balance, player, army) - const register = useCallback(() => { - writeContract({ - abi, - address: contractAddress, - functionName: 'register', - value: parseEther("0.0005"), - }) - }, [writeContract]) + const register = useCallback((arg: "RGCVII" | "ETH") => { + if (arg === 'ETH') { + writeContract({ + abi, + address: contractAddress, + functionName: 'register_eth', + value: parseEther("0.0005"), + }, { + onSuccess: (hash) => { + setHashAndCallback([hash, resetHashAndCallback]) + } + }) + } else if (arg === "RGCVII") { + writeContract({ + abi, + address: daoTokenAddress, + functionName: 'approve', + args: [contractAddress, parseEther("50")], + }, { + onSuccess: (hash) => { + setHashAndCallback([ + hash, + () => writeContract({ + abi, + address: contractAddress, + functionName: 'register_dao', + }, { + onSuccess: (hash) => { + setHashAndCallback([hash, resetHashAndCallback]) + } + }) + ]) + } + }); + } + }, [writeContract, resetHashAndCallback]) const raid = useCallback(() => { writeContract({ @@ -132,6 +167,7 @@ const PlayerProvider = ({ children }: { children: ReactNode }) => { addUnit }}> {children} + {txHash && } ); } diff --git a/app/src/styles/Modal.module.css b/app/src/styles/Modal.module.css new file mode 100644 index 0000000..a1ec842 --- /dev/null +++ b/app/src/styles/Modal.module.css @@ -0,0 +1,67 @@ +.modal { + position: fixed; + margin: 0 auto; + height: auto; + background: var(--bg-color); + border-width: 8px; + border-image: url("/background/frame.png") 22 fill / auto space; + padding: 44px; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + & button { + font-size: 1.4rem; + margin: 0 11px; + } + & h2 { + margin-top: 0; + } + .loadingImage { + position: relative; + width: 240px; + height: 240px; + } + .loadingHamster { + position: absolute; + background-image: url("/loader/hamster.png"); + width: 240px; + height: 240px; + animation: jump 0.2s ease infinite; + } + .loadingHamsterWheel { + position: absolute; + background-image: url("/loader/hamster_wheel.png"); + width: 240px; + height: 240px; + animation: spin 3.5s linear infinite; + } + .loadingHamsterWheelStand { + position: absolute; + background-image: url("/loader/hamster_stand.png"); + width: 240px; + height: 240px; + } + .loadingText { + text-align: center; + font-size: 1.1rem; + margin-bottom: 0; + } +} + +@keyframes spin { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(360deg); + } +} +@keyframes jump { + 0%, + 100% { + transform: translate(0, 0); + } + 50% { + transform: translate(0, -10px); + } +} diff --git a/app/src/styles/globals.css b/app/src/styles/globals.css index 8da1309..ad4aa7a 100644 --- a/app/src/styles/globals.css +++ b/app/src/styles/globals.css @@ -1,5 +1,6 @@ :root { --bg-color: #1a1a1a; + --bg-color-button: #000; --text-color: #ffffff; --accent-color: #f00000; --border-color: #800000; @@ -40,8 +41,8 @@ a:hover { } button { - background-color: var(--accent-color); - color: var(--bg-color); + background-color: var(--bg-color-button); + color: var(--text-color); border: 2px solid var(--border-color); padding: 10px; cursor: pointer; @@ -49,6 +50,7 @@ button { button:hover { background-color: var(--hover-color); + color: var(--bg-color-button); } header, diff --git a/broadcast/RaidGeld.s.sol/8453/run-1729970220.json b/broadcast/RaidGeld.s.sol/8453/run-1729970220.json deleted file mode 100644 index da935d1..0000000 --- a/broadcast/RaidGeld.s.sol/8453/run-1729970220.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "transactions": [ - { - "hash": "0xf4278a9fce11d0c2cead03215a7b1a659835ee9c34eaef5d77414746e08df39e", - "transactionType": "CREATE", - "contractName": "RaidGeld", - "contractAddress": "0xb2fc8f28ad37290245241c6cb0e411c9fff6a1d7", - "function": null, - "arguments": [ - "0x11dC980faf34A1D082Ae8A6a883db3A950a3c6E8", - "0x27004f6d0c1bB7979367D32Ba9d6DF6d61A18926" - ], - "transaction": { - "from": "0x3295cca2d922c637d35b258fc6c9c7e471803b45", - "gas": "0x1e142b", - "value": "0x0", - "input": "0x60a060405234801561001057600080fd5b50604051611ccd380380611ccd83398101604081905261002f916101e2565b336040518060400160405280600981526020016814985a590811d95b1960ba1b8152506040518060400160405280600481526020016311d1531160e21b815250816003908161007e91906102b4565b50600461008b82826102b4565b5050506001600160a01b0381166100bc57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6100c581610174565b50600880546001600160a01b038085166001600160a01b0319928316811790935560098054918516919092161790556040805163313ce56760e01b8152905163313ce567916004808201926020929091908290030181865afa15801561012f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101539190610372565b61015e90600a61049b565b6101699060326104aa565b608052506104c19050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b03811681146101dd57600080fd5b919050565b600080604083850312156101f557600080fd5b6101fe836101c6565b915061020c602084016101c6565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061023f57607f821691505b60208210810361025f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156102af57806000526020600020601f840160051c8101602085101561028c5750805b601f840160051c820191505b818110156102ac5760008155600101610298565b50505b505050565b81516001600160401b038111156102cd576102cd610215565b6102e1816102db845461022b565b84610265565b6020601f82116001811461031557600083156102fd5750848201515b600019600385901b1c1916600184901b1784556102ac565b600084815260208120601f198516915b828110156103455787850151825560209485019460019092019101610325565b50848210156103635786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b60006020828403121561038457600080fd5b815160ff8116811461039557600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b6001815b60018411156103ed578085048111156103d1576103d161039c565b60018416156103df57908102905b60019390931c9280026103b6565b935093915050565b60008261040457506001610495565b8161041157506000610495565b816001811461042757600281146104315761044d565b6001915050610495565b60ff8411156104425761044261039c565b50506001821b610495565b5060208310610133831016604e8410600b8410161715610470575081810a610495565b61047d60001984846103b2565b80600019048211156104915761049161039c565b0290505b92915050565b600061039560ff8416836103f5565b80820281158282048414176104955761049561039c565b6080516117ea6104e360003960008181610677015261088901526117ea6000f3fe6080604052600436106101855760003560e01c80635c12cd4b116100d1578063a7db742f1161008a578063c861dcb111610064578063c861dcb114610650578063db4d0d2714610665578063dd62ed3e14610699578063f2fde38b146106df576101fd565b8063a7db742f146105e0578063a9059cbb146105f5578063c3c5a54714610615576101fd565b80635c12cd4b1461050057806370a0823114610542578063715018a61461057857806385ed706d1461058d5780638da5cb5b146105ad57806395d89b41146105cb576101fd565b806323b872dd1161013e5780633ccfd60b116101185780633ccfd60b1461036c57806347d1e46e146103815780634914b0301461039b57806353d7da60146103bb576101fd565b806323b872dd1461031a5780632703984c1461033a578063313ce56714610350576101fd565b806306fdde0314610245578063095ea7b31461027057806313820ba7146102a057806316f0115b146102c357806318160ddd146102fb5780631aa3a00814610310576101fd565b366101fd5760405162461bcd60e51b815260206004820152603f60248201527f4e6f20706c61696e2045746865722061636365707465642c207573652072656760448201527f697374657228292066756e6374696f6e20746f20636865636b20696e203a290060648201526084015b60405180910390fd5b60405162461bcd60e51b815260206004820152601a60248201527f4e6f2066616c6c6261636b2063616c6c7320616363657074656400000000000060448201526064016101f4565b34801561025157600080fd5b5061025a6106ff565b6040516102679190611544565b60405180910390f35b34801561027c57600080fd5b5061029061028b3660046115ae565b610791565b6040519015158152602001610267565b3480156102ac57600080fd5b506102b5600f81565b604051908152602001610267565b3480156102cf57600080fd5b506009546102e3906001600160a01b031681565b6040516001600160a01b039091168152602001610267565b34801561030757600080fd5b506002546102b5565b6103186107ab565b005b34801561032657600080fd5b506102906103353660046115d8565b610a6c565b34801561034657600080fd5b506102b561271081565b34801561035c57600080fd5b5060405160048152602001610267565b34801561037857600080fd5b50610318610a90565b34801561038d57600080fd5b506102b5652d79883d200081565b3480156103a757600080fd5b506008546102e3906001600160a01b031681565b3480156103c757600080fd5b506104aa6103d6366004611615565b6040805160c081018252600060a082018181528252825160208082018552828252808401919091528351808201855282815283850152835190810190935280835260608201929092526080810191909152506001600160a01b0316600090815260076020908152604091829020825160c081018452815461ffff90811660a08301908152825284518085018652600184015482168152828501528451808501865260028401548216815282860152845193840190945260038201549093168252606083019190915260040154608082015290565b6040516102679190600060a08201905061ffff83515116825261ffff60208401515116602083015261ffff60408401515116604083015261ffff6060840151511660608301526080830151608083015292915050565b34801561050c57600080fd5b5061052061051b366004611615565b610ad4565b6040805182518152602080840151908201529181015190820152606001610267565b34801561054e57600080fd5b506102b561055d366004611615565b6001600160a01b031660009081526020819052604090205490565b34801561058457600080fd5b50610318610b3a565b34801561059957600080fd5b506103186105a8366004611637565b610b4e565b3480156105b957600080fd5b506005546001600160a01b03166102e3565b3480156105d757600080fd5b5061025a610e2d565b3480156105ec57600080fd5b50610318610e3c565b34801561060157600080fd5b506102906106103660046115ae565b610f07565b34801561062157600080fd5b50610290610630366004611615565b6001600160a01b0316600090815260066020526040902060010154151590565b34801561065c57600080fd5b506102b5610f15565b34801561067157600080fd5b506102b57f000000000000000000000000000000000000000000000000000000000000000081565b3480156106a557600080fd5b506102b56106b436600461167d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156106eb57600080fd5b506103186106fa366004611615565b610f25565b60606003805461070e906116b0565b80601f016020809104026020016040519081016040528092919081815260200182805461073a906116b0565b80156107875780601f1061075c57610100808354040283529160200191610787565b820191906000526020600020905b81548152906001019060200180831161076a57829003601f168201915b5050505050905090565b60003361079f818585610f60565b60019150505b92915050565b336000908152600660205260409020600101541561080b5760405162461bcd60e51b815260206004820181905260248201527f57686f6f70732c20706c6179657220616c726561647920657869737473203a2960448201526064016101f4565b341561086b57652d79883d200034146108665760405162461bcd60e51b815260206004820152601760248201527f496e636f72726563742062757920696e20616d6f756e7400000000000000000060448201526064016101f4565b610951565b6008546040516323b872dd60e01b81523360048201523060248201527f000000000000000000000000000000000000000000000000000000000000000060448201526001600160a01b03909116906323b872dd906064016020604051808303816000875af11580156108e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090591906116ea565b6109515760405162461bcd60e51b815260206004820152601d60248201527f4661696c656420746f207472616e736665722044414f20746f6b656e7300000060448201526064016101f4565b610967336109626127106032611722565b610f72565b604051806060016040528061271060326109819190611722565b815242602080830182905260409283019190915233600081815260068352838120855181558584015160018083019190915595850151600291820155845160c08101865260a0810183815281528551808601875283815281860190815286518087018852848152828801908152875180880189528581526060840190815260808401868152968652600790975296909320905151815461ffff1990811661ffff92831617835593515197820180548516988216989098179097559451519085018054831691871691909117905591515160038401805490931694169390931790559051600490910155565b600033610a7a858285610fac565b610a8585858561102a565b506001949350505050565b610a98611089565b6005546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610ad1573d6000803e3d6000fd5b50565b610af860405180606001604052806000815260200160008152602001600081525090565b506001600160a01b0316600090815260066020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915290565b610b42611089565b610b4c60006110b6565b565b336000908152600660205260408120600101549003610ba95760405162461bcd60e51b81526020600482015260176024820152762737ba1030b71034b734ba34b0ba32b210383630bcb2b960491b60448201526064016101f4565b60038260ff161115610bec5760405162461bcd60e51b815260206004820152600c60248201526b155b9adb9bdddb881d5b9a5d60a21b60448201526064016101f4565b3360009081526007602052604081209060ff84168103610c125750805461ffff16610c5c565b8360ff16600103610c2c5750600181015461ffff16610c5c565b8360ff16600203610c465750600281015461ffff16610c5c565b8360ff16600303610c5c5750600381015461ffff165b6000610c69858386611108565b9050610c74336111d5565b336000908152602081905260409020548110610cd25760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682047454c4420746f206164642074686973206d75636860448201526064016101f4565b610cdc3382611258565b8460ff16600003610d1e57825484908490600090610cff90849061ffff16611739565b92506101000a81548161ffff021916908361ffff160217905550610dab565b8460ff16600103610d4457600183018054859190600090610cff90849061ffff16611739565b8460ff16600203610d6a57600283018054859190600090610cff90849061ffff16611739565b8460ff16600303610dab57600383018054859190600090610d9090849061ffff16611739565b92506101000a81548161ffff021916908361ffff1602179055505b6040805160c081018252845461ffff90811660a08301908152825282516020818101855260018801548316825280840191909152835180820185526002880154831681528385015283519081019093526003860154168252606081019190915260048401546080820152610e1e9061128e565b83600401819055505050505050565b60606004805461070e906116b0565b336000908152600660205260408120600101549003610e975760405162461bcd60e51b81526020600482015260176024820152762737ba1030b71034b734ba34b0ba32b210383630bcb2b960491b60448201526064016101f4565b33600090815260066020526040902060020154610eb690600f90611753565b421015610efe5760405162461bcd60e51b81526020600482015260166024820152752a3934b2b21036b4b73a34b733903a37b79039b7b7b760511b60448201526064016101f4565b610b4c336111d5565b60003361079f81858561102a565b610f226127106032611722565b81565b610f2d611089565b6001600160a01b038116610f5757604051631e4fbdf760e01b8152600060048201526024016101f4565b610ad1816110b6565b610f6d8383836001611345565b505050565b6001600160a01b038216610f9c5760405163ec442f0560e01b8152600060048201526024016101f4565b610fa86000838361141a565b5050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114611024578181101561101557604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016101f4565b61102484848484036000611345565b50505050565b6001600160a01b03831661105457604051634b637e8f60e11b8152600060048201526024016101f4565b6001600160a01b03821661107e5760405163ec442f0560e01b8152600060048201526024016101f4565b610f6d83838361141a565b6005546001600160a01b03163314610b4c5760405163118cdaa760e01b81523360048201526024016101f4565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060038460ff1611156111575760405162461bcd60e51b8152602060048201526016602482015275139bc81b585d18da1a5b99c81d5b9a5d08199bdd5b9960521b60448201526064016101f4565b60006205cc60611168866001611766565b60ff166111759190611722565b90508060015b6111858587611739565b61ffff168110156111cb5761271061119f612cec85611722565b6111a9919061177f565b92508561ffff1681106111c3576111c08383611753565b91505b60010161117b565b5095945050505050565b6001600160a01b0381166000908152600660205260408120600201546111fb90426117a1565b6001600160a01b03831660009081526007602052604081206004015491925090611226908390611722565b90506112328382610f72565b6001600160a01b0390921660009081526006602052604090204260028201559190915550565b6001600160a01b03821661128257604051634b637e8f60e11b8152600060048201526024016101f4565b610fa88260008361141a565b80515160009081906112a7906127109061ffff16611722565b9050600061ee4884602001516000015161ffff166112c59190611722565b905060006205dc0085604001516000015161ffff166112e49190611722565b905060006127106112fb8165ede50bb9800061177f565b611305919061177f565b606087015151611319919061ffff16611722565b905080826113278587611753565b6113319190611753565b61133b9190611753565b9695505050505050565b6001600160a01b03841661136f5760405163e602df0560e01b8152600060048201526024016101f4565b6001600160a01b03831661139957604051634a1406b160e11b8152600060048201526024016101f4565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561102457826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161140c91815260200190565b60405180910390a350505050565b6001600160a01b03831661144557806002600082825461143a9190611753565b909155506114b79050565b6001600160a01b038316600090815260208190526040902054818110156114985760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016101f4565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166114d3576002805482900390556114f2565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161153791815260200190565b60405180910390a3505050565b602081526000825180602084015260005b818110156115725760208186018101516040868401015201611555565b506000604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146115a957600080fd5b919050565b600080604083850312156115c157600080fd5b6115ca83611592565b946020939093013593505050565b6000806000606084860312156115ed57600080fd5b6115f684611592565b925061160460208501611592565b929592945050506040919091013590565b60006020828403121561162757600080fd5b61163082611592565b9392505050565b6000806040838503121561164a57600080fd5b823560ff8116811461165b57600080fd5b9150602083013561ffff8116811461167257600080fd5b809150509250929050565b6000806040838503121561169057600080fd5b61169983611592565b91506116a760208401611592565b90509250929050565b600181811c908216806116c457607f821691505b6020821081036116e457634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156116fc57600080fd5b8151801515811461163057600080fd5b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176107a5576107a561170c565b61ffff81811683821601908111156107a5576107a561170c565b808201808211156107a5576107a561170c565b60ff81811683821601908111156107a5576107a561170c565b60008261179c57634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156107a5576107a561170c56fea2646970667358221220e6bad70680fdee5fb985ae5e884c4471f46d5febec4efc3ccebe2e1ee82de75764736f6c634300081c003300000000000000000000000011dc980faf34a1d082ae8a6a883db3a950a3c6e800000000000000000000000027004f6d0c1bb7979367d32ba9d6df6d61a18926", - "nonce": "0x1", - "chainId": "0x2105" - }, - "additionalContracts": [], - "isFixedGasLimit": false - } - ], - "receipts": [ - { - "status": "0x1", - "cumulativeGasUsed": "0x172507", - "logs": [ - { - "address": "0xb2fc8f28ad37290245241c6cb0e411c9fff6a1d7", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000003295cca2d922c637d35b258fc6c9c7e471803b45" - ], - "data": "0x", - "blockHash": "0xe8f062660de56b3a4a6ee42c5abb2b43d7cee37c911822eff46c6dead0783edd", - "blockNumber": "0x1497119", - "blockTimestamp": "0x671d402a", - "transactionHash": "0xf4278a9fce11d0c2cead03215a7b1a659835ee9c34eaef5d77414746e08df39e", - "transactionIndex": "0x0", - "logIndex": "0x0", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000008000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000001000000000000000000000100000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000010000000000000001000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "type": "0x2", - "transactionHash": "0xf4278a9fce11d0c2cead03215a7b1a659835ee9c34eaef5d77414746e08df39e", - "transactionIndex": "0x0", - "blockHash": "0xe8f062660de56b3a4a6ee42c5abb2b43d7cee37c911822eff46c6dead0783edd", - "blockNumber": "0x1497119", - "gasUsed": "0x172507", - "effectiveGasPrice": "0x2b", - "blobGasPrice": "0x1", - "from": "0x3295cca2d922c637d35b258fc6c9c7e471803b45", - "to": null, - "contractAddress": "0xb2fc8f28ad37290245241c6cb0e411c9fff6a1d7", - "root": "0x0000000000000000000000000000000000000000000000000000000000000000" - } - ], - "libraries": [], - "pending": [], - "returns": {}, - "timestamp": 1729970220, - "chain": 8453, - "commit": "5b0d24c" -} \ No newline at end of file diff --git a/broadcast/RaidGeld.s.sol/8453/run-latest.json b/broadcast/RaidGeld.s.sol/8453/run-latest.json deleted file mode 100644 index da935d1..0000000 --- a/broadcast/RaidGeld.s.sol/8453/run-latest.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "transactions": [ - { - "hash": "0xf4278a9fce11d0c2cead03215a7b1a659835ee9c34eaef5d77414746e08df39e", - "transactionType": "CREATE", - "contractName": "RaidGeld", - "contractAddress": "0xb2fc8f28ad37290245241c6cb0e411c9fff6a1d7", - "function": null, - "arguments": [ - "0x11dC980faf34A1D082Ae8A6a883db3A950a3c6E8", - "0x27004f6d0c1bB7979367D32Ba9d6DF6d61A18926" - ], - "transaction": { - "from": "0x3295cca2d922c637d35b258fc6c9c7e471803b45", - "gas": "0x1e142b", - "value": "0x0", - "input": "0x60a060405234801561001057600080fd5b50604051611ccd380380611ccd83398101604081905261002f916101e2565b336040518060400160405280600981526020016814985a590811d95b1960ba1b8152506040518060400160405280600481526020016311d1531160e21b815250816003908161007e91906102b4565b50600461008b82826102b4565b5050506001600160a01b0381166100bc57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6100c581610174565b50600880546001600160a01b038085166001600160a01b0319928316811790935560098054918516919092161790556040805163313ce56760e01b8152905163313ce567916004808201926020929091908290030181865afa15801561012f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101539190610372565b61015e90600a61049b565b6101699060326104aa565b608052506104c19050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b80516001600160a01b03811681146101dd57600080fd5b919050565b600080604083850312156101f557600080fd5b6101fe836101c6565b915061020c602084016101c6565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061023f57607f821691505b60208210810361025f57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156102af57806000526020600020601f840160051c8101602085101561028c5750805b601f840160051c820191505b818110156102ac5760008155600101610298565b50505b505050565b81516001600160401b038111156102cd576102cd610215565b6102e1816102db845461022b565b84610265565b6020601f82116001811461031557600083156102fd5750848201515b600019600385901b1c1916600184901b1784556102ac565b600084815260208120601f198516915b828110156103455787850151825560209485019460019092019101610325565b50848210156103635786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b60006020828403121561038457600080fd5b815160ff8116811461039557600080fd5b9392505050565b634e487b7160e01b600052601160045260246000fd5b6001815b60018411156103ed578085048111156103d1576103d161039c565b60018416156103df57908102905b60019390931c9280026103b6565b935093915050565b60008261040457506001610495565b8161041157506000610495565b816001811461042757600281146104315761044d565b6001915050610495565b60ff8411156104425761044261039c565b50506001821b610495565b5060208310610133831016604e8410600b8410161715610470575081810a610495565b61047d60001984846103b2565b80600019048211156104915761049161039c565b0290505b92915050565b600061039560ff8416836103f5565b80820281158282048414176104955761049561039c565b6080516117ea6104e360003960008181610677015261088901526117ea6000f3fe6080604052600436106101855760003560e01c80635c12cd4b116100d1578063a7db742f1161008a578063c861dcb111610064578063c861dcb114610650578063db4d0d2714610665578063dd62ed3e14610699578063f2fde38b146106df576101fd565b8063a7db742f146105e0578063a9059cbb146105f5578063c3c5a54714610615576101fd565b80635c12cd4b1461050057806370a0823114610542578063715018a61461057857806385ed706d1461058d5780638da5cb5b146105ad57806395d89b41146105cb576101fd565b806323b872dd1161013e5780633ccfd60b116101185780633ccfd60b1461036c57806347d1e46e146103815780634914b0301461039b57806353d7da60146103bb576101fd565b806323b872dd1461031a5780632703984c1461033a578063313ce56714610350576101fd565b806306fdde0314610245578063095ea7b31461027057806313820ba7146102a057806316f0115b146102c357806318160ddd146102fb5780631aa3a00814610310576101fd565b366101fd5760405162461bcd60e51b815260206004820152603f60248201527f4e6f20706c61696e2045746865722061636365707465642c207573652072656760448201527f697374657228292066756e6374696f6e20746f20636865636b20696e203a290060648201526084015b60405180910390fd5b60405162461bcd60e51b815260206004820152601a60248201527f4e6f2066616c6c6261636b2063616c6c7320616363657074656400000000000060448201526064016101f4565b34801561025157600080fd5b5061025a6106ff565b6040516102679190611544565b60405180910390f35b34801561027c57600080fd5b5061029061028b3660046115ae565b610791565b6040519015158152602001610267565b3480156102ac57600080fd5b506102b5600f81565b604051908152602001610267565b3480156102cf57600080fd5b506009546102e3906001600160a01b031681565b6040516001600160a01b039091168152602001610267565b34801561030757600080fd5b506002546102b5565b6103186107ab565b005b34801561032657600080fd5b506102906103353660046115d8565b610a6c565b34801561034657600080fd5b506102b561271081565b34801561035c57600080fd5b5060405160048152602001610267565b34801561037857600080fd5b50610318610a90565b34801561038d57600080fd5b506102b5652d79883d200081565b3480156103a757600080fd5b506008546102e3906001600160a01b031681565b3480156103c757600080fd5b506104aa6103d6366004611615565b6040805160c081018252600060a082018181528252825160208082018552828252808401919091528351808201855282815283850152835190810190935280835260608201929092526080810191909152506001600160a01b0316600090815260076020908152604091829020825160c081018452815461ffff90811660a08301908152825284518085018652600184015482168152828501528451808501865260028401548216815282860152845193840190945260038201549093168252606083019190915260040154608082015290565b6040516102679190600060a08201905061ffff83515116825261ffff60208401515116602083015261ffff60408401515116604083015261ffff6060840151511660608301526080830151608083015292915050565b34801561050c57600080fd5b5061052061051b366004611615565b610ad4565b6040805182518152602080840151908201529181015190820152606001610267565b34801561054e57600080fd5b506102b561055d366004611615565b6001600160a01b031660009081526020819052604090205490565b34801561058457600080fd5b50610318610b3a565b34801561059957600080fd5b506103186105a8366004611637565b610b4e565b3480156105b957600080fd5b506005546001600160a01b03166102e3565b3480156105d757600080fd5b5061025a610e2d565b3480156105ec57600080fd5b50610318610e3c565b34801561060157600080fd5b506102906106103660046115ae565b610f07565b34801561062157600080fd5b50610290610630366004611615565b6001600160a01b0316600090815260066020526040902060010154151590565b34801561065c57600080fd5b506102b5610f15565b34801561067157600080fd5b506102b57f000000000000000000000000000000000000000000000000000000000000000081565b3480156106a557600080fd5b506102b56106b436600461167d565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156106eb57600080fd5b506103186106fa366004611615565b610f25565b60606003805461070e906116b0565b80601f016020809104026020016040519081016040528092919081815260200182805461073a906116b0565b80156107875780601f1061075c57610100808354040283529160200191610787565b820191906000526020600020905b81548152906001019060200180831161076a57829003601f168201915b5050505050905090565b60003361079f818585610f60565b60019150505b92915050565b336000908152600660205260409020600101541561080b5760405162461bcd60e51b815260206004820181905260248201527f57686f6f70732c20706c6179657220616c726561647920657869737473203a2960448201526064016101f4565b341561086b57652d79883d200034146108665760405162461bcd60e51b815260206004820152601760248201527f496e636f72726563742062757920696e20616d6f756e7400000000000000000060448201526064016101f4565b610951565b6008546040516323b872dd60e01b81523360048201523060248201527f000000000000000000000000000000000000000000000000000000000000000060448201526001600160a01b03909116906323b872dd906064016020604051808303816000875af11580156108e1573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061090591906116ea565b6109515760405162461bcd60e51b815260206004820152601d60248201527f4661696c656420746f207472616e736665722044414f20746f6b656e7300000060448201526064016101f4565b610967336109626127106032611722565b610f72565b604051806060016040528061271060326109819190611722565b815242602080830182905260409283019190915233600081815260068352838120855181558584015160018083019190915595850151600291820155845160c08101865260a0810183815281528551808601875283815281860190815286518087018852848152828801908152875180880189528581526060840190815260808401868152968652600790975296909320905151815461ffff1990811661ffff92831617835593515197820180548516988216989098179097559451519085018054831691871691909117905591515160038401805490931694169390931790559051600490910155565b600033610a7a858285610fac565b610a8585858561102a565b506001949350505050565b610a98611089565b6005546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610ad1573d6000803e3d6000fd5b50565b610af860405180606001604052806000815260200160008152602001600081525090565b506001600160a01b0316600090815260066020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915290565b610b42611089565b610b4c60006110b6565b565b336000908152600660205260408120600101549003610ba95760405162461bcd60e51b81526020600482015260176024820152762737ba1030b71034b734ba34b0ba32b210383630bcb2b960491b60448201526064016101f4565b60038260ff161115610bec5760405162461bcd60e51b815260206004820152600c60248201526b155b9adb9bdddb881d5b9a5d60a21b60448201526064016101f4565b3360009081526007602052604081209060ff84168103610c125750805461ffff16610c5c565b8360ff16600103610c2c5750600181015461ffff16610c5c565b8360ff16600203610c465750600281015461ffff16610c5c565b8360ff16600303610c5c5750600381015461ffff165b6000610c69858386611108565b9050610c74336111d5565b336000908152602081905260409020548110610cd25760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682047454c4420746f206164642074686973206d75636860448201526064016101f4565b610cdc3382611258565b8460ff16600003610d1e57825484908490600090610cff90849061ffff16611739565b92506101000a81548161ffff021916908361ffff160217905550610dab565b8460ff16600103610d4457600183018054859190600090610cff90849061ffff16611739565b8460ff16600203610d6a57600283018054859190600090610cff90849061ffff16611739565b8460ff16600303610dab57600383018054859190600090610d9090849061ffff16611739565b92506101000a81548161ffff021916908361ffff1602179055505b6040805160c081018252845461ffff90811660a08301908152825282516020818101855260018801548316825280840191909152835180820185526002880154831681528385015283519081019093526003860154168252606081019190915260048401546080820152610e1e9061128e565b83600401819055505050505050565b60606004805461070e906116b0565b336000908152600660205260408120600101549003610e975760405162461bcd60e51b81526020600482015260176024820152762737ba1030b71034b734ba34b0ba32b210383630bcb2b960491b60448201526064016101f4565b33600090815260066020526040902060020154610eb690600f90611753565b421015610efe5760405162461bcd60e51b81526020600482015260166024820152752a3934b2b21036b4b73a34b733903a37b79039b7b7b760511b60448201526064016101f4565b610b4c336111d5565b60003361079f81858561102a565b610f226127106032611722565b81565b610f2d611089565b6001600160a01b038116610f5757604051631e4fbdf760e01b8152600060048201526024016101f4565b610ad1816110b6565b610f6d8383836001611345565b505050565b6001600160a01b038216610f9c5760405163ec442f0560e01b8152600060048201526024016101f4565b610fa86000838361141a565b5050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114611024578181101561101557604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016101f4565b61102484848484036000611345565b50505050565b6001600160a01b03831661105457604051634b637e8f60e11b8152600060048201526024016101f4565b6001600160a01b03821661107e5760405163ec442f0560e01b8152600060048201526024016101f4565b610f6d83838361141a565b6005546001600160a01b03163314610b4c5760405163118cdaa760e01b81523360048201526024016101f4565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060038460ff1611156111575760405162461bcd60e51b8152602060048201526016602482015275139bc81b585d18da1a5b99c81d5b9a5d08199bdd5b9960521b60448201526064016101f4565b60006205cc60611168866001611766565b60ff166111759190611722565b90508060015b6111858587611739565b61ffff168110156111cb5761271061119f612cec85611722565b6111a9919061177f565b92508561ffff1681106111c3576111c08383611753565b91505b60010161117b565b5095945050505050565b6001600160a01b0381166000908152600660205260408120600201546111fb90426117a1565b6001600160a01b03831660009081526007602052604081206004015491925090611226908390611722565b90506112328382610f72565b6001600160a01b0390921660009081526006602052604090204260028201559190915550565b6001600160a01b03821661128257604051634b637e8f60e11b8152600060048201526024016101f4565b610fa88260008361141a565b80515160009081906112a7906127109061ffff16611722565b9050600061ee4884602001516000015161ffff166112c59190611722565b905060006205dc0085604001516000015161ffff166112e49190611722565b905060006127106112fb8165ede50bb9800061177f565b611305919061177f565b606087015151611319919061ffff16611722565b905080826113278587611753565b6113319190611753565b61133b9190611753565b9695505050505050565b6001600160a01b03841661136f5760405163e602df0560e01b8152600060048201526024016101f4565b6001600160a01b03831661139957604051634a1406b160e11b8152600060048201526024016101f4565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561102457826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161140c91815260200190565b60405180910390a350505050565b6001600160a01b03831661144557806002600082825461143a9190611753565b909155506114b79050565b6001600160a01b038316600090815260208190526040902054818110156114985760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016101f4565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166114d3576002805482900390556114f2565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161153791815260200190565b60405180910390a3505050565b602081526000825180602084015260005b818110156115725760208186018101516040868401015201611555565b506000604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146115a957600080fd5b919050565b600080604083850312156115c157600080fd5b6115ca83611592565b946020939093013593505050565b6000806000606084860312156115ed57600080fd5b6115f684611592565b925061160460208501611592565b929592945050506040919091013590565b60006020828403121561162757600080fd5b61163082611592565b9392505050565b6000806040838503121561164a57600080fd5b823560ff8116811461165b57600080fd5b9150602083013561ffff8116811461167257600080fd5b809150509250929050565b6000806040838503121561169057600080fd5b61169983611592565b91506116a760208401611592565b90509250929050565b600181811c908216806116c457607f821691505b6020821081036116e457634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156116fc57600080fd5b8151801515811461163057600080fd5b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176107a5576107a561170c565b61ffff81811683821601908111156107a5576107a561170c565b808201808211156107a5576107a561170c565b60ff81811683821601908111156107a5576107a561170c565b60008261179c57634e487b7160e01b600052601260045260246000fd5b500490565b818103818111156107a5576107a561170c56fea2646970667358221220e6bad70680fdee5fb985ae5e884c4471f46d5febec4efc3ccebe2e1ee82de75764736f6c634300081c003300000000000000000000000011dc980faf34a1d082ae8a6a883db3a950a3c6e800000000000000000000000027004f6d0c1bb7979367d32ba9d6df6d61a18926", - "nonce": "0x1", - "chainId": "0x2105" - }, - "additionalContracts": [], - "isFixedGasLimit": false - } - ], - "receipts": [ - { - "status": "0x1", - "cumulativeGasUsed": "0x172507", - "logs": [ - { - "address": "0xb2fc8f28ad37290245241c6cb0e411c9fff6a1d7", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000003295cca2d922c637d35b258fc6c9c7e471803b45" - ], - "data": "0x", - "blockHash": "0xe8f062660de56b3a4a6ee42c5abb2b43d7cee37c911822eff46c6dead0783edd", - "blockNumber": "0x1497119", - "blockTimestamp": "0x671d402a", - "transactionHash": "0xf4278a9fce11d0c2cead03215a7b1a659835ee9c34eaef5d77414746e08df39e", - "transactionIndex": "0x0", - "logIndex": "0x0", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000008000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000001000000000000000000000100000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000010000000000000001000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "type": "0x2", - "transactionHash": "0xf4278a9fce11d0c2cead03215a7b1a659835ee9c34eaef5d77414746e08df39e", - "transactionIndex": "0x0", - "blockHash": "0xe8f062660de56b3a4a6ee42c5abb2b43d7cee37c911822eff46c6dead0783edd", - "blockNumber": "0x1497119", - "gasUsed": "0x172507", - "effectiveGasPrice": "0x2b", - "blobGasPrice": "0x1", - "from": "0x3295cca2d922c637d35b258fc6c9c7e471803b45", - "to": null, - "contractAddress": "0xb2fc8f28ad37290245241c6cb0e411c9fff6a1d7", - "root": "0x0000000000000000000000000000000000000000000000000000000000000000" - } - ], - "libraries": [], - "pending": [], - "returns": {}, - "timestamp": 1729970220, - "chain": 8453, - "commit": "5b0d24c" -} \ No newline at end of file diff --git a/broadcast/RaidGeld.s.sol/84532/run-1729696549.json b/broadcast/RaidGeld.s.sol/84532/run-1729696549.json deleted file mode 100644 index 0a1ec0c..0000000 --- a/broadcast/RaidGeld.s.sol/84532/run-1729696549.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "transactions": [ - { - "hash": "0x9d39df7a47137565fa4dfd579c92e4a90db9ae54490630585e878d7313ce15a7", - "transactionType": "CREATE", - "contractName": "RaidGeld", - "contractAddress": "0xbd06b0878888bf4c6895704fa603a5adf7e65c66", - "function": null, - "arguments": null, - "transaction": { - "from": "0x3295cca2d922c637d35b258fc6c9c7e471803b45", - "gas": "0x1c21ce", - "value": "0x0", - "input": "0x608060405234801561001057600080fd5b50336040518060400160405280600981526020016814985a590811d95b1960ba1b8152506040518060400160405280600481526020016311d1531160e21b8152508160039081610060919061019e565b50600461006d828261019e565b5050506001600160a01b03811661009e57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6100a7816100ad565b5061025c565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061012957607f821691505b60208210810361014957634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561019957806000526020600020601f840160051c810160208510156101765750805b601f840160051c820191505b818110156101965760008155600101610182565b50505b505050565b81516001600160401b038111156101b7576101b76100ff565b6101cb816101c58454610115565b8461014f565b6020601f8211600181146101ff57600083156101e75750848201515b600019600385901b1c1916600184901b178455610196565b600084815260208120601f198516915b8281101561022f578785015182556020948501946001909201910161020f565b508482101561024d5786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b6117478061026b6000396000f3fe6080604052600436106101395760003560e01c806370a08231116100ab578063a7db742f1161006f578063a7db742f14610530578063a9059cbb14610545578063c3c5a54714610565578063c861dcb1146105a0578063dd62ed3e146105b5578063f2fde38b146105fb576101b1565b806370a0823114610488578063715018a6146104be57806385ed706d146104d35780638da5cb5b146104f357806395d89b411461051b576101b1565b806323b872dd116100fd57806323b872dd14610296578063313ce567146102b65780633ccfd60b146102d257806347d1e46e146102e757806353d7da60146103015780635c12cd4b14610446576101b1565b806306fdde03146101f9578063095ea7b31461022457806313820ba71461025457806318160ddd146102775780631aa3a0081461028c576101b1565b366101b15760405162461bcd60e51b815260206004820152603f60248201527f4e6f20706c61696e2045746865722061636365707465642c207573652072656760448201527f697374657228292066756e6374696f6e20746f20636865636b20696e203a290060648201526084015b60405180910390fd5b60405162461bcd60e51b815260206004820152601a60248201527f4e6f2066616c6c6261636b2063616c6c7320616363657074656400000000000060448201526064016101a8565b34801561020557600080fd5b5061020e61061b565b60405161021b9190611396565b60405180910390f35b34801561023057600080fd5b5061024461023f366004611400565b6106ad565b604051901515815260200161021b565b34801561026057600080fd5b50610269600f81565b60405190815260200161021b565b34801561028357600080fd5b50600254610269565b6102946106c7565b005b3480156102a257600080fd5b506102446102b136600461142a565b6108ab565b3480156102c257600080fd5b506040516004815260200161021b565b3480156102de57600080fd5b506102946108cf565b3480156102f357600080fd5b50610269652d79883d200081565b34801561030d57600080fd5b506103f061031c366004611467565b6040805160c081018252600060a082018181528252825160208082018552828252808401919091528351808201855282815283850152835190810190935280835260608201929092526080810191909152506001600160a01b0316600090815260076020908152604091829020825160c081018452815461ffff90811660a08301908152825284518085018652600184015482168152828501528451808501865260028401548216815282860152845193840190945260038201549093168252606083019190915260040154608082015290565b60405161021b9190600060a08201905061ffff83515116825261ffff60208401515116602083015261ffff60408401515116604083015261ffff6060840151511660608301526080830151608083015292915050565b34801561045257600080fd5b50610466610461366004611467565b610913565b604080518251815260208084015190820152918101519082015260600161021b565b34801561049457600080fd5b506102696104a3366004611467565b6001600160a01b031660009081526020819052604090205490565b3480156104ca57600080fd5b50610294610979565b3480156104df57600080fd5b506102946104ee366004611489565b61098d565b3480156104ff57600080fd5b506005546040516001600160a01b03909116815260200161021b565b34801561052757600080fd5b5061020e610c64565b34801561053c57600080fd5b50610294610c73565b34801561055157600080fd5b50610244610560366004611400565b610daf565b34801561057157600080fd5b50610244610580366004611467565b6001600160a01b0316600090815260066020526040902060010154151590565b3480156105ac57600080fd5b50610269610dbd565b3480156105c157600080fd5b506102696105d03660046114cf565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561060757600080fd5b50610294610616366004611467565b610dd7565b60606003805461062a90611502565b80601f016020809104026020016040519081016040528092919081815260200182805461065690611502565b80156106a35780601f10610678576101008083540402835291602001916106a3565b820191906000526020600020905b81548152906001019060200180831161068657829003601f168201915b5050505050905090565b6000336106bb818585610e12565b60019150505b92915050565b33600090815260066020526040902060010154156107275760405162461bcd60e51b815260206004820181905260248201527f57686f6f70732c20706c6179657220616c726561647920657869737473203a2960448201526064016101a8565b652d79883d2000341461077c5760405162461bcd60e51b815260206004820152601760248201527f496e636f72726563742062757920696e20616d6f756e7400000000000000000060448201526064016101a8565b61079c3361078c6004600a611639565b610797906032611648565b610e24565b60405180606001604052806004600a6107b59190611639565b6107c0906032611648565b815242602080830182905260409283019190915233600081815260068352838120855181558584015160018083019190915595850151600291820155845160c08101865260a0810183815281528551808601875283815281860190815286518087018852848152828801908152875180880189528581526060840190815260808401868152968652600790975296909320905151815461ffff1990811661ffff92831617835593515197820180548516988216989098179097559451519085018054831691871691909117905591515160038401805490931694169390931790559051600490910155565b6000336108b9858285610e5e565b6108c4858585610edc565b506001949350505050565b6108d7610f3b565b6005546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610910573d6000803e3d6000fd5b50565b61093760405180606001604052806000815260200160008152602001600081525090565b506001600160a01b0316600090815260066020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915290565b610981610f3b565b61098b6000610f68565b565b3360009081526006602052604081206001015490036109e85760405162461bcd60e51b81526020600482015260176024820152762737ba1030b71034b734ba34b0ba32b210383630bcb2b960491b60448201526064016101a8565b60038260ff161115610a2b5760405162461bcd60e51b815260206004820152600c60248201526b155b9adb9bdddb881d5b9a5d60a21b60448201526064016101a8565b3360009081526007602052604081209060ff84168103610a515750805461ffff16610a9b565b8360ff16600103610a6b5750600181015461ffff16610a9b565b8360ff16600203610a855750600281015461ffff16610a9b565b8360ff16600303610a9b5750600381015461ffff165b6000610aa8858386610fba565b336000908152602081905260409020549091508110610b095760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682047454c4420746f206164642074686973206d75636860448201526064016101a8565b610b13338261107c565b8460ff16600003610b5557825484908490600090610b3690849061ffff1661165f565b92506101000a81548161ffff021916908361ffff160217905550610be2565b8460ff16600103610b7b57600183018054859190600090610b3690849061ffff1661165f565b8460ff16600203610ba157600283018054859190600090610b3690849061ffff1661165f565b8460ff16600303610be257600383018054859190600090610bc790849061ffff1661165f565b92506101000a81548161ffff021916908361ffff1602179055505b6040805160c081018252845461ffff90811660a08301908152825282516020818101855260018801548316825280840191909152835180820185526002880154831681528385015283519081019093526003860154168252606081019190915260048401546080820152610c55906110b2565b83600401819055505050505050565b60606004805461062a90611502565b336000908152600660205260408120600101549003610cce5760405162461bcd60e51b81526020600482015260176024820152762737ba1030b71034b734ba34b0ba32b210383630bcb2b960491b60448201526064016101a8565b33600090815260066020526040902060020154610ced90600f90611679565b421015610d355760405162461bcd60e51b81526020600482015260166024820152752a3934b2b21036b4b73a34b733903a37b79039b7b7b760511b60448201526064016101a8565b33600090815260066020526040812060020154610d52904261168c565b90506000610d626004600a611639565b33600090815260076020526040902060040154610d80908490611648565b610d8a9190611648565b9050610d963382610e24565b3360009081526006602052604090204260028201555550565b6000336106bb818585610edc565b610dc96004600a611639565b610dd4906032611648565b81565b610ddf610f3b565b6001600160a01b038116610e0957604051631e4fbdf760e01b8152600060048201526024016101a8565b61091081610f68565b610e1f8383836001611197565b505050565b6001600160a01b038216610e4e5760405163ec442f0560e01b8152600060048201526024016101a8565b610e5a6000838361126c565b5050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610ed65781811015610ec757604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016101a8565b610ed684848484036000611197565b50505050565b6001600160a01b038316610f0657604051634b637e8f60e11b8152600060048201526024016101a8565b6001600160a01b038216610f305760405163ec442f0560e01b8152600060048201526024016101a8565b610e1f83838361126c565b6005546001600160a01b0316331461098b5760405163118cdaa760e01b81523360048201526024016101a8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060038460ff1611156110095760405162461bcd60e51b8152602060048201526016602482015275139bc81b585d18da1a5b99c81d5b9a5d08199bdd5b9960521b60448201526064016101a8565b600061101960ff86166026611648565b90506000607360015b61102c868861165f565b61ffff168110156110705760646110438386611648565b61104d91906116b5565b93508661ffff16811115611068576110658484611679565b92505b600101611022565b50909695505050505050565b6001600160a01b0382166110a657604051634b637e8f60e11b8152600060048201526024016101a8565b610e5a8260008361126c565b80515160208201515160009161ffff16908290600a906110d390603d6116c9565b6110dd91906116ed565b61ffff1690506000600a85604001516000015160066110fc91906116c9565b6111079060406116c9565b61111191906116ed565b61ffff1690506000600a80600a886060015160000151603d61113391906116c9565b61113d91906116ed565b6111489060406116c9565b61115291906116ed565b61115d9060436116c9565b61116791906116ed565b61ffff16905080826111798587611679565b6111839190611679565b61118d9190611679565b9695505050505050565b6001600160a01b0384166111c15760405163e602df0560e01b8152600060048201526024016101a8565b6001600160a01b0383166111eb57604051634a1406b160e11b8152600060048201526024016101a8565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610ed657826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258460405161125e91815260200190565b60405180910390a350505050565b6001600160a01b03831661129757806002600082825461128c9190611679565b909155506113099050565b6001600160a01b038316600090815260208190526040902054818110156112ea5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016101a8565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661132557600280548290039055611344565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161138991815260200190565b60405180910390a3505050565b602081526000825180602084015260005b818110156113c457602081860181015160408684010152016113a7565b506000604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b03811681146113fb57600080fd5b919050565b6000806040838503121561141357600080fd5b61141c836113e4565b946020939093013593505050565b60008060006060848603121561143f57600080fd5b611448846113e4565b9250611456602085016113e4565b929592945050506040919091013590565b60006020828403121561147957600080fd5b611482826113e4565b9392505050565b6000806040838503121561149c57600080fd5b823560ff811681146114ad57600080fd5b9150602083013561ffff811681146114c457600080fd5b809150509250929050565b600080604083850312156114e257600080fd5b6114eb836113e4565b91506114f9602084016113e4565b90509250929050565b600181811c9082168061151657607f821691505b60208210810361153657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001815b600184111561158d578085048111156115715761157161153c565b600184161561157f57908102905b60019390931c928002611556565b935093915050565b6000826115a4575060016106c1565b816115b1575060006106c1565b81600181146115c757600281146115d1576115ed565b60019150506106c1565b60ff8411156115e2576115e261153c565b50506001821b6106c1565b5060208310610133831016604e8410600b8410161715611610575081810a6106c1565b61161d6000198484611552565b80600019048211156116315761163161153c565b029392505050565b600061148260ff841683611595565b80820281158282048414176106c1576106c161153c565b61ffff81811683821601908111156106c1576106c161153c565b808201808211156106c1576106c161153c565b818103818111156106c1576106c161153c565b634e487b7160e01b600052601260045260246000fd5b6000826116c4576116c461169f565b500490565b61ffff81811683821602908116908181146116e6576116e661153c565b5092915050565b600061ffff8316806117015761170161169f565b8061ffff8416049150509291505056fea2646970667358221220061f190eb2f6fddd15161a6db096edf6e4a5b06217867d89e6792c032ada56e764736f6c634300081c0033", - "nonce": "0x0", - "chainId": "0x14a34" - }, - "additionalContracts": [], - "isFixedGasLimit": false - } - ], - "receipts": [ - { - "status": "0x1", - "cumulativeGasUsed": "0x3dfdcd", - "logs": [ - { - "address": "0xbd06b0878888bf4c6895704fa603a5adf7e65c66", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000003295cca2d922c637d35b258fc6c9c7e471803b45" - ], - "data": "0x", - "blockHash": "0xe82c2fd01054c42c857cd623a9f0bd0486c97c47b55d8504798371063e4a1614", - "blockNumber": "0x102da20", - "transactionHash": "0x9d39df7a47137565fa4dfd579c92e4a90db9ae54490630585e878d7313ce15a7", - "transactionIndex": "0xe", - "logIndex": "0x19", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000800008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000100000000000000020000000000000000000800000000000004000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008000000000000010000000000000001000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "type": "0x2", - "transactionHash": "0x9d39df7a47137565fa4dfd579c92e4a90db9ae54490630585e878d7313ce15a7", - "transactionIndex": "0xe", - "blockHash": "0xe82c2fd01054c42c857cd623a9f0bd0486c97c47b55d8504798371063e4a1614", - "blockNumber": "0x102da20", - "gasUsed": "0x15a576", - "effectiveGasPrice": "0xa0f5edca", - "from": "0x3295cca2d922c637d35b258fc6c9c7e471803b45", - "to": null, - "contractAddress": "0xbd06b0878888bf4c6895704fa603a5adf7e65c66", - "l1BaseFeeScalar": "0x44d", - "l1BlobBaseFee": "0x3", - "l1BlobBaseFeeScalar": "0xa118b", - "l1Fee": "0x22c9f9127e", - "l1GasPrice": "0x84641d16", - "l1GasUsed": "0xeeab" - } - ], - "libraries": [], - "pending": [], - "returns": {}, - "timestamp": 1729696549, - "chain": 84532, - "commit": "830beab" -} \ No newline at end of file diff --git a/broadcast/RaidGeld.s.sol/84532/run-1729773387.json b/broadcast/RaidGeld.s.sol/84532/run-1729773387.json deleted file mode 100644 index 76fb6d9..0000000 --- a/broadcast/RaidGeld.s.sol/84532/run-1729773387.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "transactions": [ - { - "hash": "0xd4fa77c04f44634b166b7ae80cabe097cf35d8d38ea569e499b73310623501d9", - "transactionType": "CREATE", - "contractName": "RaidGeld", - "contractAddress": "0x3572a80eb8df722c98814290f86be29141859660", - "function": null, - "arguments": null, - "transaction": { - "from": "0x3295cca2d922c637d35b258fc6c9c7e471803b45", - "gas": "0x1c9543", - "value": "0x0", - "input": "0x608060405234801561001057600080fd5b50336040518060400160405280600981526020016814985a590811d95b1960ba1b8152506040518060400160405280600481526020016311d1531160e21b8152508160039081610060919061019e565b50600461006d828261019e565b5050506001600160a01b03811661009e57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6100a7816100ad565b5061025c565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061012957607f821691505b60208210810361014957634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561019957806000526020600020601f840160051c810160208510156101765750805b601f840160051c820191505b818110156101965760008155600101610182565b50505b505050565b81516001600160401b038111156101b7576101b76100ff565b6101cb816101c58454610115565b8461014f565b6020601f8211600181146101ff57600083156101e75750848201515b600019600385901b1c1916600184901b178455610196565b600084815260208120601f198516915b8281101561022f578785015182556020948501946001909201910161020f565b508482101561024d5786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b6117b08061026b6000396000f3fe6080604052600436106101395760003560e01c806370a08231116100ab578063a7db742f1161006f578063a7db742f14610530578063a9059cbb14610545578063c3c5a54714610565578063c861dcb1146105a0578063dd62ed3e146105b5578063f2fde38b146105fb576101b1565b806370a0823114610488578063715018a6146104be57806385ed706d146104d35780638da5cb5b146104f357806395d89b411461051b576101b1565b806323b872dd116100fd57806323b872dd14610296578063313ce567146102b65780633ccfd60b146102d257806347d1e46e146102e757806353d7da60146103015780635c12cd4b14610446576101b1565b806306fdde03146101f9578063095ea7b31461022457806313820ba71461025457806318160ddd146102775780631aa3a0081461028c576101b1565b366101b15760405162461bcd60e51b815260206004820152603f60248201527f4e6f20706c61696e2045746865722061636365707465642c207573652072656760448201527f697374657228292066756e6374696f6e20746f20636865636b20696e203a290060648201526084015b60405180910390fd5b60405162461bcd60e51b815260206004820152601a60248201527f4e6f2066616c6c6261636b2063616c6c7320616363657074656400000000000060448201526064016101a8565b34801561020557600080fd5b5061020e61061b565b60405161021b91906113e6565b60405180910390f35b34801561023057600080fd5b5061024461023f366004611450565b6106ad565b604051901515815260200161021b565b34801561026057600080fd5b50610269600f81565b60405190815260200161021b565b34801561028357600080fd5b50600254610269565b6102946106c7565b005b3480156102a257600080fd5b506102446102b136600461147a565b6108ab565b3480156102c257600080fd5b506040516004815260200161021b565b3480156102de57600080fd5b506102946108cf565b3480156102f357600080fd5b50610269652d79883d200081565b34801561030d57600080fd5b506103f061031c3660046114b7565b6040805160c081018252600060a082018181528252825160208082018552828252808401919091528351808201855282815283850152835190810190935280835260608201929092526080810191909152506001600160a01b0316600090815260076020908152604091829020825160c081018452815461ffff90811660a08301908152825284518085018652600184015482168152828501528451808501865260028401548216815282860152845193840190945260038201549093168252606083019190915260040154608082015290565b60405161021b9190600060a08201905061ffff83515116825261ffff60208401515116602083015261ffff60408401515116604083015261ffff6060840151511660608301526080830151608083015292915050565b34801561045257600080fd5b506104666104613660046114b7565b610913565b604080518251815260208084015190820152918101519082015260600161021b565b34801561049457600080fd5b506102696104a33660046114b7565b6001600160a01b031660009081526020819052604090205490565b3480156104ca57600080fd5b50610294610979565b3480156104df57600080fd5b506102946104ee3660046114d9565b61098d565b3480156104ff57600080fd5b506005546040516001600160a01b03909116815260200161021b565b34801561052757600080fd5b5061020e610c83565b34801561053c57600080fd5b50610294610c92565b34801561055157600080fd5b50610244610560366004611450565b610d5d565b34801561057157600080fd5b506102446105803660046114b7565b6001600160a01b0316600090815260066020526040902060010154151590565b3480156105ac57600080fd5b50610269610d6b565b3480156105c157600080fd5b506102696105d036600461151f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561060757600080fd5b506102946106163660046114b7565b610d85565b60606003805461062a90611552565b80601f016020809104026020016040519081016040528092919081815260200182805461065690611552565b80156106a35780601f10610678576101008083540402835291602001916106a3565b820191906000526020600020905b81548152906001019060200180831161068657829003601f168201915b5050505050905090565b6000336106bb818585610dc0565b60019150505b92915050565b33600090815260066020526040902060010154156107275760405162461bcd60e51b815260206004820181905260248201527f57686f6f70732c20706c6179657220616c726561647920657869737473203a2960448201526064016101a8565b652d79883d2000341461077c5760405162461bcd60e51b815260206004820152601760248201527f496e636f72726563742062757920696e20616d6f756e7400000000000000000060448201526064016101a8565b61079c3361078c6004600a611689565b610797906032611698565b610dd2565b60405180606001604052806004600a6107b59190611689565b6107c0906032611698565b815242602080830182905260409283019190915233600081815260068352838120855181558584015160018083019190915595850151600291820155845160c08101865260a0810183815281528551808601875283815281860190815286518087018852848152828801908152875180880189528581526060840190815260808401868152968652600790975296909320905151815461ffff1990811661ffff92831617835593515197820180548516988216989098179097559451519085018054831691871691909117905591515160038401805490931694169390931790559051600490910155565b6000336108b9858285610e0c565b6108c4858585610e8a565b506001949350505050565b6108d7610ee9565b6005546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610910573d6000803e3d6000fd5b50565b61093760405180606001604052806000815260200160008152602001600081525090565b506001600160a01b0316600090815260066020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915290565b610981610ee9565b61098b6000610f16565b565b3360009081526006602052604081206001015490036109e85760405162461bcd60e51b81526020600482015260176024820152762737ba1030b71034b734ba34b0ba32b210383630bcb2b960491b60448201526064016101a8565b60038260ff161115610a2b5760405162461bcd60e51b815260206004820152600c60248201526b155b9adb9bdddb881d5b9a5d60a21b60448201526064016101a8565b3360009081526007602052604081209060ff84168103610a515750805461ffff16610a9b565b8360ff16600103610a6b5750600181015461ffff16610a9b565b8360ff16600203610a855750600281015461ffff16610a9b565b8360ff16600303610a9b5750600381015461ffff165b6000610aa96004600a611689565b610ab4868487610f68565b610abe9190611698565b336000908152602081905260409020549091508110610b1f5760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682047454c4420746f206164642074686973206d75636860448201526064016101a8565b610b2833611033565b610b3233826110cc565b8460ff16600003610b7457825484908490600090610b5590849061ffff166116af565b92506101000a81548161ffff021916908361ffff160217905550610c01565b8460ff16600103610b9a57600183018054859190600090610b5590849061ffff166116af565b8460ff16600203610bc057600283018054859190600090610b5590849061ffff166116af565b8460ff16600303610c0157600383018054859190600090610be690849061ffff166116af565b92506101000a81548161ffff021916908361ffff1602179055505b6040805160c081018252845461ffff90811660a08301908152825282516020818101855260018801548316825280840191909152835180820185526002880154831681528385015283519081019093526003860154168252606081019190915260048401546080820152610c7490611102565b83600401819055505050505050565b60606004805461062a90611552565b336000908152600660205260408120600101549003610ced5760405162461bcd60e51b81526020600482015260176024820152762737ba1030b71034b734ba34b0ba32b210383630bcb2b960491b60448201526064016101a8565b33600090815260066020526040902060020154610d0c90600f906116c9565b421015610d545760405162461bcd60e51b81526020600482015260166024820152752a3934b2b21036b4b73a34b733903a37b79039b7b7b760511b60448201526064016101a8565b61098b33611033565b6000336106bb818585610e8a565b610d776004600a611689565b610d82906032611698565b81565b610d8d610ee9565b6001600160a01b038116610db757604051631e4fbdf760e01b8152600060048201526024016101a8565b61091081610f16565b610dcd83838360016111e7565b505050565b6001600160a01b038216610dfc5760405163ec442f0560e01b8152600060048201526024016101a8565b610e08600083836112bc565b5050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610e845781811015610e7557604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016101a8565b610e84848484840360006111e7565b50505050565b6001600160a01b038316610eb457604051634b637e8f60e11b8152600060048201526024016101a8565b6001600160a01b038216610ede5760405163ec442f0560e01b8152600060048201526024016101a8565b610dcd8383836112bc565b6005546001600160a01b0316331461098b5760405163118cdaa760e01b81523360048201526024016101a8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060038460ff161115610fb75760405162461bcd60e51b8152602060048201526016602482015275139bc81b585d18da1a5b99c81d5b9a5d08199bdd5b9960521b60448201526064016101a8565b6000610fc48560016116dc565b610fd29060ff166026611698565b905080607360015b610fe486886116af565b61ffff16811015611027576064610ffb8386611698565b611005919061170b565b93508661ffff16811061101f5761101c84846116c9565b92505b600101610fda565b50909695505050505050565b6001600160a01b038116600090815260066020526040812060020154611059904261171f565b905060006110696004600a611689565b6001600160a01b038416600090815260076020526040902060040154611090908490611698565b61109a9190611698565b90506110a68382610dd2565b6001600160a01b0390921660009081526006602052604090204260028201559190915550565b6001600160a01b0382166110f657604051634b637e8f60e11b8152600060048201526024016101a8565b610e08826000836112bc565b80515160208201515160009161ffff16908290600a9061112390603d611732565b61112d9190611756565b61ffff1690506000600a856040015160000151600661114c9190611732565b611157906040611732565b6111619190611756565b61ffff1690506000600a80600a886060015160000151603d6111839190611732565b61118d9190611756565b611198906040611732565b6111a29190611756565b6111ad906043611732565b6111b79190611756565b61ffff16905080826111c985876116c9565b6111d391906116c9565b6111dd91906116c9565b9695505050505050565b6001600160a01b0384166112115760405163e602df0560e01b8152600060048201526024016101a8565b6001600160a01b03831661123b57604051634a1406b160e11b8152600060048201526024016101a8565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610e8457826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516112ae91815260200190565b60405180910390a350505050565b6001600160a01b0383166112e75780600260008282546112dc91906116c9565b909155506113599050565b6001600160a01b0383166000908152602081905260409020548181101561133a5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016101a8565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661137557600280548290039055611394565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516113d991815260200190565b60405180910390a3505050565b602081526000825180602084015260005b8181101561141457602081860181015160408684010152016113f7565b506000604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b038116811461144b57600080fd5b919050565b6000806040838503121561146357600080fd5b61146c83611434565b946020939093013593505050565b60008060006060848603121561148f57600080fd5b61149884611434565b92506114a660208501611434565b929592945050506040919091013590565b6000602082840312156114c957600080fd5b6114d282611434565b9392505050565b600080604083850312156114ec57600080fd5b823560ff811681146114fd57600080fd5b9150602083013561ffff8116811461151457600080fd5b809150509250929050565b6000806040838503121561153257600080fd5b61153b83611434565b915061154960208401611434565b90509250929050565b600181811c9082168061156657607f821691505b60208210810361158657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001815b60018411156115dd578085048111156115c1576115c161158c565b60018416156115cf57908102905b60019390931c9280026115a6565b935093915050565b6000826115f4575060016106c1565b81611601575060006106c1565b816001811461161757600281146116215761163d565b60019150506106c1565b60ff8411156116325761163261158c565b50506001821b6106c1565b5060208310610133831016604e8410600b8410161715611660575081810a6106c1565b61166d60001984846115a2565b80600019048211156116815761168161158c565b029392505050565b60006114d260ff8416836115e5565b80820281158282048414176106c1576106c161158c565b61ffff81811683821601908111156106c1576106c161158c565b808201808211156106c1576106c161158c565b60ff81811683821601908111156106c1576106c161158c565b634e487b7160e01b600052601260045260246000fd5b60008261171a5761171a6116f5565b500490565b818103818111156106c1576106c161158c565b61ffff818116838216029081169081811461174f5761174f61158c565b5092915050565b600061ffff83168061176a5761176a6116f5565b8061ffff8416049150509291505056fea2646970667358221220313cc1e5e86bbb7d3c3ded2bd7a034c1d5ffeb6733733567e3c8f6b4f041b55864736f6c634300081c0033", - "nonce": "0x7", - "chainId": "0x14a34" - }, - "additionalContracts": [], - "isFixedGasLimit": false - } - ], - "receipts": [ - { - "status": "0x1", - "cumulativeGasUsed": "0x1f8453", - "logs": [ - { - "address": "0x3572a80eb8df722c98814290f86be29141859660", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000003295cca2d922c637d35b258fc6c9c7e471803b45" - ], - "data": "0x", - "blockHash": "0x9708bb1125f0e43dc1ffc445a674ebbf03f5e0c95bf8f803027fe0b8a64492dd", - "blockNumber": "0x1037033", - "transactionHash": "0xd4fa77c04f44634b166b7ae80cabe097cf35d8d38ea569e499b73310623501d9", - "transactionIndex": "0x7", - "logIndex": "0x7", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000200000000000000800000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001000000000000000000000100000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000010000000000000001000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "type": "0x2", - "transactionHash": "0xd4fa77c04f44634b166b7ae80cabe097cf35d8d38ea569e499b73310623501d9", - "transactionIndex": "0x7", - "blockHash": "0x9708bb1125f0e43dc1ffc445a674ebbf03f5e0c95bf8f803027fe0b8a64492dd", - "blockNumber": "0x1037033", - "gasUsed": "0x15fe4c", - "effectiveGasPrice": "0x13b3f9", - "from": "0x3295cca2d922c637d35b258fc6c9c7e471803b45", - "to": null, - "contractAddress": "0x3572a80eb8df722c98814290f86be29141859660", - "l1BaseFeeScalar": "0x44d", - "l1BlobBaseFee": "0x1", - "l1BlobBaseFeeScalar": "0xa118b", - "l1Fee": "0x664fcff1ad", - "l1GasPrice": "0x17fe2ef41", - "l1GasUsed": "0xf211" - } - ], - "libraries": [], - "pending": [], - "returns": {}, - "timestamp": 1729773387, - "chain": 84532, - "commit": "cb12c77" -} \ No newline at end of file diff --git a/broadcast/RaidGeld.s.sol/84532/run-latest.json b/broadcast/RaidGeld.s.sol/84532/run-latest.json deleted file mode 100644 index 76fb6d9..0000000 --- a/broadcast/RaidGeld.s.sol/84532/run-latest.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "transactions": [ - { - "hash": "0xd4fa77c04f44634b166b7ae80cabe097cf35d8d38ea569e499b73310623501d9", - "transactionType": "CREATE", - "contractName": "RaidGeld", - "contractAddress": "0x3572a80eb8df722c98814290f86be29141859660", - "function": null, - "arguments": null, - "transaction": { - "from": "0x3295cca2d922c637d35b258fc6c9c7e471803b45", - "gas": "0x1c9543", - "value": "0x0", - "input": "0x608060405234801561001057600080fd5b50336040518060400160405280600981526020016814985a590811d95b1960ba1b8152506040518060400160405280600481526020016311d1531160e21b8152508160039081610060919061019e565b50600461006d828261019e565b5050506001600160a01b03811661009e57604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b6100a7816100ad565b5061025c565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c9082168061012957607f821691505b60208210810361014957634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561019957806000526020600020601f840160051c810160208510156101765750805b601f840160051c820191505b818110156101965760008155600101610182565b50505b505050565b81516001600160401b038111156101b7576101b76100ff565b6101cb816101c58454610115565b8461014f565b6020601f8211600181146101ff57600083156101e75750848201515b600019600385901b1c1916600184901b178455610196565b600084815260208120601f198516915b8281101561022f578785015182556020948501946001909201910161020f565b508482101561024d5786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b6117b08061026b6000396000f3fe6080604052600436106101395760003560e01c806370a08231116100ab578063a7db742f1161006f578063a7db742f14610530578063a9059cbb14610545578063c3c5a54714610565578063c861dcb1146105a0578063dd62ed3e146105b5578063f2fde38b146105fb576101b1565b806370a0823114610488578063715018a6146104be57806385ed706d146104d35780638da5cb5b146104f357806395d89b411461051b576101b1565b806323b872dd116100fd57806323b872dd14610296578063313ce567146102b65780633ccfd60b146102d257806347d1e46e146102e757806353d7da60146103015780635c12cd4b14610446576101b1565b806306fdde03146101f9578063095ea7b31461022457806313820ba71461025457806318160ddd146102775780631aa3a0081461028c576101b1565b366101b15760405162461bcd60e51b815260206004820152603f60248201527f4e6f20706c61696e2045746865722061636365707465642c207573652072656760448201527f697374657228292066756e6374696f6e20746f20636865636b20696e203a290060648201526084015b60405180910390fd5b60405162461bcd60e51b815260206004820152601a60248201527f4e6f2066616c6c6261636b2063616c6c7320616363657074656400000000000060448201526064016101a8565b34801561020557600080fd5b5061020e61061b565b60405161021b91906113e6565b60405180910390f35b34801561023057600080fd5b5061024461023f366004611450565b6106ad565b604051901515815260200161021b565b34801561026057600080fd5b50610269600f81565b60405190815260200161021b565b34801561028357600080fd5b50600254610269565b6102946106c7565b005b3480156102a257600080fd5b506102446102b136600461147a565b6108ab565b3480156102c257600080fd5b506040516004815260200161021b565b3480156102de57600080fd5b506102946108cf565b3480156102f357600080fd5b50610269652d79883d200081565b34801561030d57600080fd5b506103f061031c3660046114b7565b6040805160c081018252600060a082018181528252825160208082018552828252808401919091528351808201855282815283850152835190810190935280835260608201929092526080810191909152506001600160a01b0316600090815260076020908152604091829020825160c081018452815461ffff90811660a08301908152825284518085018652600184015482168152828501528451808501865260028401548216815282860152845193840190945260038201549093168252606083019190915260040154608082015290565b60405161021b9190600060a08201905061ffff83515116825261ffff60208401515116602083015261ffff60408401515116604083015261ffff6060840151511660608301526080830151608083015292915050565b34801561045257600080fd5b506104666104613660046114b7565b610913565b604080518251815260208084015190820152918101519082015260600161021b565b34801561049457600080fd5b506102696104a33660046114b7565b6001600160a01b031660009081526020819052604090205490565b3480156104ca57600080fd5b50610294610979565b3480156104df57600080fd5b506102946104ee3660046114d9565b61098d565b3480156104ff57600080fd5b506005546040516001600160a01b03909116815260200161021b565b34801561052757600080fd5b5061020e610c83565b34801561053c57600080fd5b50610294610c92565b34801561055157600080fd5b50610244610560366004611450565b610d5d565b34801561057157600080fd5b506102446105803660046114b7565b6001600160a01b0316600090815260066020526040902060010154151590565b3480156105ac57600080fd5b50610269610d6b565b3480156105c157600080fd5b506102696105d036600461151f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b34801561060757600080fd5b506102946106163660046114b7565b610d85565b60606003805461062a90611552565b80601f016020809104026020016040519081016040528092919081815260200182805461065690611552565b80156106a35780601f10610678576101008083540402835291602001916106a3565b820191906000526020600020905b81548152906001019060200180831161068657829003601f168201915b5050505050905090565b6000336106bb818585610dc0565b60019150505b92915050565b33600090815260066020526040902060010154156107275760405162461bcd60e51b815260206004820181905260248201527f57686f6f70732c20706c6179657220616c726561647920657869737473203a2960448201526064016101a8565b652d79883d2000341461077c5760405162461bcd60e51b815260206004820152601760248201527f496e636f72726563742062757920696e20616d6f756e7400000000000000000060448201526064016101a8565b61079c3361078c6004600a611689565b610797906032611698565b610dd2565b60405180606001604052806004600a6107b59190611689565b6107c0906032611698565b815242602080830182905260409283019190915233600081815260068352838120855181558584015160018083019190915595850151600291820155845160c08101865260a0810183815281528551808601875283815281860190815286518087018852848152828801908152875180880189528581526060840190815260808401868152968652600790975296909320905151815461ffff1990811661ffff92831617835593515197820180548516988216989098179097559451519085018054831691871691909117905591515160038401805490931694169390931790559051600490910155565b6000336108b9858285610e0c565b6108c4858585610e8a565b506001949350505050565b6108d7610ee9565b6005546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610910573d6000803e3d6000fd5b50565b61093760405180606001604052806000815260200160008152602001600081525090565b506001600160a01b0316600090815260066020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915290565b610981610ee9565b61098b6000610f16565b565b3360009081526006602052604081206001015490036109e85760405162461bcd60e51b81526020600482015260176024820152762737ba1030b71034b734ba34b0ba32b210383630bcb2b960491b60448201526064016101a8565b60038260ff161115610a2b5760405162461bcd60e51b815260206004820152600c60248201526b155b9adb9bdddb881d5b9a5d60a21b60448201526064016101a8565b3360009081526007602052604081209060ff84168103610a515750805461ffff16610a9b565b8360ff16600103610a6b5750600181015461ffff16610a9b565b8360ff16600203610a855750600281015461ffff16610a9b565b8360ff16600303610a9b5750600381015461ffff165b6000610aa96004600a611689565b610ab4868487610f68565b610abe9190611698565b336000908152602081905260409020549091508110610b1f5760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682047454c4420746f206164642074686973206d75636860448201526064016101a8565b610b2833611033565b610b3233826110cc565b8460ff16600003610b7457825484908490600090610b5590849061ffff166116af565b92506101000a81548161ffff021916908361ffff160217905550610c01565b8460ff16600103610b9a57600183018054859190600090610b5590849061ffff166116af565b8460ff16600203610bc057600283018054859190600090610b5590849061ffff166116af565b8460ff16600303610c0157600383018054859190600090610be690849061ffff166116af565b92506101000a81548161ffff021916908361ffff1602179055505b6040805160c081018252845461ffff90811660a08301908152825282516020818101855260018801548316825280840191909152835180820185526002880154831681528385015283519081019093526003860154168252606081019190915260048401546080820152610c7490611102565b83600401819055505050505050565b60606004805461062a90611552565b336000908152600660205260408120600101549003610ced5760405162461bcd60e51b81526020600482015260176024820152762737ba1030b71034b734ba34b0ba32b210383630bcb2b960491b60448201526064016101a8565b33600090815260066020526040902060020154610d0c90600f906116c9565b421015610d545760405162461bcd60e51b81526020600482015260166024820152752a3934b2b21036b4b73a34b733903a37b79039b7b7b760511b60448201526064016101a8565b61098b33611033565b6000336106bb818585610e8a565b610d776004600a611689565b610d82906032611698565b81565b610d8d610ee9565b6001600160a01b038116610db757604051631e4fbdf760e01b8152600060048201526024016101a8565b61091081610f16565b610dcd83838360016111e7565b505050565b6001600160a01b038216610dfc5760405163ec442f0560e01b8152600060048201526024016101a8565b610e08600083836112bc565b5050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610e845781811015610e7557604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016101a8565b610e84848484840360006111e7565b50505050565b6001600160a01b038316610eb457604051634b637e8f60e11b8152600060048201526024016101a8565b6001600160a01b038216610ede5760405163ec442f0560e01b8152600060048201526024016101a8565b610dcd8383836112bc565b6005546001600160a01b0316331461098b5760405163118cdaa760e01b81523360048201526024016101a8565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600060038460ff161115610fb75760405162461bcd60e51b8152602060048201526016602482015275139bc81b585d18da1a5b99c81d5b9a5d08199bdd5b9960521b60448201526064016101a8565b6000610fc48560016116dc565b610fd29060ff166026611698565b905080607360015b610fe486886116af565b61ffff16811015611027576064610ffb8386611698565b611005919061170b565b93508661ffff16811061101f5761101c84846116c9565b92505b600101610fda565b50909695505050505050565b6001600160a01b038116600090815260066020526040812060020154611059904261171f565b905060006110696004600a611689565b6001600160a01b038416600090815260076020526040902060040154611090908490611698565b61109a9190611698565b90506110a68382610dd2565b6001600160a01b0390921660009081526006602052604090204260028201559190915550565b6001600160a01b0382166110f657604051634b637e8f60e11b8152600060048201526024016101a8565b610e08826000836112bc565b80515160208201515160009161ffff16908290600a9061112390603d611732565b61112d9190611756565b61ffff1690506000600a856040015160000151600661114c9190611732565b611157906040611732565b6111619190611756565b61ffff1690506000600a80600a886060015160000151603d6111839190611732565b61118d9190611756565b611198906040611732565b6111a29190611756565b6111ad906043611732565b6111b79190611756565b61ffff16905080826111c985876116c9565b6111d391906116c9565b6111dd91906116c9565b9695505050505050565b6001600160a01b0384166112115760405163e602df0560e01b8152600060048201526024016101a8565b6001600160a01b03831661123b57604051634a1406b160e11b8152600060048201526024016101a8565b6001600160a01b0380851660009081526001602090815260408083209387168352929052208290558015610e8457826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516112ae91815260200190565b60405180910390a350505050565b6001600160a01b0383166112e75780600260008282546112dc91906116c9565b909155506113599050565b6001600160a01b0383166000908152602081905260409020548181101561133a5760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016101a8565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b03821661137557600280548290039055611394565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516113d991815260200190565b60405180910390a3505050565b602081526000825180602084015260005b8181101561141457602081860181015160408684010152016113f7565b506000604082850101526040601f19601f83011684010191505092915050565b80356001600160a01b038116811461144b57600080fd5b919050565b6000806040838503121561146357600080fd5b61146c83611434565b946020939093013593505050565b60008060006060848603121561148f57600080fd5b61149884611434565b92506114a660208501611434565b929592945050506040919091013590565b6000602082840312156114c957600080fd5b6114d282611434565b9392505050565b600080604083850312156114ec57600080fd5b823560ff811681146114fd57600080fd5b9150602083013561ffff8116811461151457600080fd5b809150509250929050565b6000806040838503121561153257600080fd5b61153b83611434565b915061154960208401611434565b90509250929050565b600181811c9082168061156657607f821691505b60208210810361158657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6001815b60018411156115dd578085048111156115c1576115c161158c565b60018416156115cf57908102905b60019390931c9280026115a6565b935093915050565b6000826115f4575060016106c1565b81611601575060006106c1565b816001811461161757600281146116215761163d565b60019150506106c1565b60ff8411156116325761163261158c565b50506001821b6106c1565b5060208310610133831016604e8410600b8410161715611660575081810a6106c1565b61166d60001984846115a2565b80600019048211156116815761168161158c565b029392505050565b60006114d260ff8416836115e5565b80820281158282048414176106c1576106c161158c565b61ffff81811683821601908111156106c1576106c161158c565b808201808211156106c1576106c161158c565b60ff81811683821601908111156106c1576106c161158c565b634e487b7160e01b600052601260045260246000fd5b60008261171a5761171a6116f5565b500490565b818103818111156106c1576106c161158c565b61ffff818116838216029081169081811461174f5761174f61158c565b5092915050565b600061ffff83168061176a5761176a6116f5565b8061ffff8416049150509291505056fea2646970667358221220313cc1e5e86bbb7d3c3ded2bd7a034c1d5ffeb6733733567e3c8f6b4f041b55864736f6c634300081c0033", - "nonce": "0x7", - "chainId": "0x14a34" - }, - "additionalContracts": [], - "isFixedGasLimit": false - } - ], - "receipts": [ - { - "status": "0x1", - "cumulativeGasUsed": "0x1f8453", - "logs": [ - { - "address": "0x3572a80eb8df722c98814290f86be29141859660", - "topics": [ - "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0", - "0x0000000000000000000000000000000000000000000000000000000000000000", - "0x0000000000000000000000003295cca2d922c637d35b258fc6c9c7e471803b45" - ], - "data": "0x", - "blockHash": "0x9708bb1125f0e43dc1ffc445a674ebbf03f5e0c95bf8f803027fe0b8a64492dd", - "blockNumber": "0x1037033", - "transactionHash": "0xd4fa77c04f44634b166b7ae80cabe097cf35d8d38ea569e499b73310623501d9", - "transactionIndex": "0x7", - "logIndex": "0x7", - "removed": false - } - ], - "logsBloom": "0x00000000000000000000000000000000000200000000000000800000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000001000000000000000000000100000000000000020000000000000000000800000000000000000000000000000000400000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000010000000000000001000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000", - "type": "0x2", - "transactionHash": "0xd4fa77c04f44634b166b7ae80cabe097cf35d8d38ea569e499b73310623501d9", - "transactionIndex": "0x7", - "blockHash": "0x9708bb1125f0e43dc1ffc445a674ebbf03f5e0c95bf8f803027fe0b8a64492dd", - "blockNumber": "0x1037033", - "gasUsed": "0x15fe4c", - "effectiveGasPrice": "0x13b3f9", - "from": "0x3295cca2d922c637d35b258fc6c9c7e471803b45", - "to": null, - "contractAddress": "0x3572a80eb8df722c98814290f86be29141859660", - "l1BaseFeeScalar": "0x44d", - "l1BlobBaseFee": "0x1", - "l1BlobBaseFeeScalar": "0xa118b", - "l1Fee": "0x664fcff1ad", - "l1GasPrice": "0x17fe2ef41", - "l1GasUsed": "0xf211" - } - ], - "libraries": [], - "pending": [], - "returns": {}, - "timestamp": 1729773387, - "chain": 84532, - "commit": "cb12c77" -} \ No newline at end of file diff --git a/deploy_contract.sh b/deploy_contract.sh index 8dc4b9a..667fc86 100755 --- a/deploy_contract.sh +++ b/deploy_contract.sh @@ -1,4 +1,23 @@ -#!/bin/sh -cast rpc anvil_setBalance 0x3295CCA2d922c637d35b258fc6c9C7e471803b45 0xDE0B6B3A7640000 --rpc-url http://127.0.0.1:8545 -forge script script/RaidGeld.s.sol:RaidGeldScript --rpc-url 127.0.0.1:8545 --broadcast --private-key $DEV_PRIVATE_KEY -cast rpc anvil_mine +#!/bin/bash + +# YOUR WALLET, change to you account below: +DEV_WALLET="0x3295CCA2d922c637d35b258fc6c9C7e471803b45" + +DAO_OWNER="0x4d5A5B4a679b10038e1677C84Cb675d10d29fFFD" +DAO_CONTRACT="0x11dC980faf34A1D082Ae8A6a883db3A950a3c6E8" + +# Set balance for the dev wallet (1eth) +cast rpc anvil_setBalance $DEV_WALLET 0xDE0B6B3A7640000 --rpc-url http://127.0.0.1:8545 +cast rpc anvil_setBalance $DAO_OWNER 0xDE0B6B3A7640000 --rpc-url http://127.0.0.1:8545 + +# Deploy RaidGeld +forge script script/RaidGeld.s.sol:RaidGeldScript --rpc-url http://127.0.0.1:8545 --broadcast --private-key $DEV_PRIVATE_KEY + +# Impersonate the DAO owner account +cast rpc anvil_impersonateAccount $DAO_OWNER + +# Send the mint transaction as the impersonated owner +cast send $DAO_CONTRACT "mint(address,uint256)" $DEV_WALLET 0x00000000000000000000000000000000000000000000003635c9adc5dea00000 --from $DAO_OWNER --rpc-url http://127.0.0.1:8545 --unlocked --gas-limit 300000 + +# Stop impersonating the DAO owner +cast rpc anvil_stopImpersonatingAccount $DAO_OWNER