├── .deps └── remix-tests │ ├── remix_accounts.sol │ └── remix_tests.sol ├── .gitattributes ├── LICENSE ├── README.txt ├── contracts ├── Context.sol ├── ERC20.sol ├── IERC20.sol ├── IERC20Metadata.sol ├── artifacts │ ├── airdrop.json │ ├── airdrop_metadata.json │ ├── claimer.json │ ├── claimer_metadata.json │ ├── multiCall.json │ ├── multiCall_metadata.json │ ├── token.json │ └── token_metadata.json ├── multi_claim.sol ├── multi_claim_with_selfdestruct.txt └── token.sol └── scripts ├── deploy_ethers.js └── deploy_web3.js /.deps/remix-tests/remix_accounts.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0 2 | 3 | pragma solidity >=0.4.22 <0.9.0; 4 | 5 | library TestsAccounts { 6 | function getAccount(uint index) pure public returns (address) { 7 | address[15] memory accounts; 8 | accounts[0] = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4; 9 | 10 | accounts[1] = 0xAb8483F64d9C6d1EcF9b849Ae677dD3315835cb2; 11 | 12 | accounts[2] = 0x4B20993Bc481177ec7E8f571ceCaE8A9e22C02db; 13 | 14 | accounts[3] = 0x78731D3Ca6b7E34aC0F824c42a7cC18A495cabaB; 15 | 16 | accounts[4] = 0x617F2E2fD72FD9D5503197092aC168c91465E7f2; 17 | 18 | accounts[5] = 0x17F6AD8Ef982297579C203069C1DbfFE4348c372; 19 | 20 | accounts[6] = 0x5c6B0f7Bf3E7ce046039Bd8FABdfD3f9F5021678; 21 | 22 | accounts[7] = 0x03C6FcED478cBbC9a4FAB34eF9f40767739D1Ff7; 23 | 24 | accounts[8] = 0x1aE0EA34a72D944a8C7603FfB3eC30a6669E454C; 25 | 26 | accounts[9] = 0x0A098Eda01Ce92ff4A4CCb7A4fFFb5A43EBC70DC; 27 | 28 | accounts[10] = 0xCA35b7d915458EF540aDe6068dFe2F44E8fa733c; 29 | 30 | accounts[11] = 0x14723A09ACff6D2A60DcdF7aA4AFf308FDDC160C; 31 | 32 | accounts[12] = 0x4B0897b0513fdC7C541B6d9D7E929C4e5364D2dB; 33 | 34 | accounts[13] = 0x583031D1113aD414F02576BD6afaBfb302140225; 35 | 36 | accounts[14] = 0xdD870fA1b7C4700F2BD7f44238821C26f7392148; 37 | 38 | return accounts[index]; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /.deps/remix-tests/remix_tests.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0 2 | 3 | pragma solidity >=0.4.22 <0.9.0; 4 | 5 | library Assert { 6 | 7 | event AssertionEvent( 8 | bool passed, 9 | string message, 10 | string methodName 11 | ); 12 | 13 | event AssertionEventUint( 14 | bool passed, 15 | string message, 16 | string methodName, 17 | uint256 returned, 18 | uint256 expected 19 | ); 20 | 21 | event AssertionEventInt( 22 | bool passed, 23 | string message, 24 | string methodName, 25 | int256 returned, 26 | int256 expected 27 | ); 28 | 29 | event AssertionEventBool( 30 | bool passed, 31 | string message, 32 | string methodName, 33 | bool returned, 34 | bool expected 35 | ); 36 | 37 | event AssertionEventAddress( 38 | bool passed, 39 | string message, 40 | string methodName, 41 | address returned, 42 | address expected 43 | ); 44 | 45 | event AssertionEventBytes32( 46 | bool passed, 47 | string message, 48 | string methodName, 49 | bytes32 returned, 50 | bytes32 expected 51 | ); 52 | 53 | event AssertionEventString( 54 | bool passed, 55 | string message, 56 | string methodName, 57 | string returned, 58 | string expected 59 | ); 60 | 61 | event AssertionEventUintInt( 62 | bool passed, 63 | string message, 64 | string methodName, 65 | uint256 returned, 66 | int256 expected 67 | ); 68 | 69 | event AssertionEventIntUint( 70 | bool passed, 71 | string message, 72 | string methodName, 73 | int256 returned, 74 | uint256 expected 75 | ); 76 | 77 | function ok(bool a, string memory message) public returns (bool result) { 78 | result = a; 79 | emit AssertionEvent(result, message, "ok"); 80 | } 81 | 82 | function equal(uint256 a, uint256 b, string memory message) public returns (bool result) { 83 | result = (a == b); 84 | emit AssertionEventUint(result, message, "equal", a, b); 85 | } 86 | 87 | function equal(int256 a, int256 b, string memory message) public returns (bool result) { 88 | result = (a == b); 89 | emit AssertionEventInt(result, message, "equal", a, b); 90 | } 91 | 92 | function equal(bool a, bool b, string memory message) public returns (bool result) { 93 | result = (a == b); 94 | emit AssertionEventBool(result, message, "equal", a, b); 95 | } 96 | 97 | // TODO: only for certain versions of solc 98 | //function equal(fixed a, fixed b, string message) public returns (bool result) { 99 | // result = (a == b); 100 | // emit AssertionEvent(result, message); 101 | //} 102 | 103 | // TODO: only for certain versions of solc 104 | //function equal(ufixed a, ufixed b, string message) public returns (bool result) { 105 | // result = (a == b); 106 | // emit AssertionEvent(result, message); 107 | //} 108 | 109 | function equal(address a, address b, string memory message) public returns (bool result) { 110 | result = (a == b); 111 | emit AssertionEventAddress(result, message, "equal", a, b); 112 | } 113 | 114 | function equal(bytes32 a, bytes32 b, string memory message) public returns (bool result) { 115 | result = (a == b); 116 | emit AssertionEventBytes32(result, message, "equal", a, b); 117 | } 118 | 119 | function equal(string memory a, string memory b, string memory message) public returns (bool result) { 120 | result = (keccak256(abi.encodePacked(a)) == keccak256(abi.encodePacked(b))); 121 | emit AssertionEventString(result, message, "equal", a, b); 122 | } 123 | 124 | function notEqual(uint256 a, uint256 b, string memory message) public returns (bool result) { 125 | result = (a != b); 126 | emit AssertionEventUint(result, message, "notEqual", a, b); 127 | } 128 | 129 | function notEqual(int256 a, int256 b, string memory message) public returns (bool result) { 130 | result = (a != b); 131 | emit AssertionEventInt(result, message, "notEqual", a, b); 132 | } 133 | 134 | function notEqual(bool a, bool b, string memory message) public returns (bool result) { 135 | result = (a != b); 136 | emit AssertionEventBool(result, message, "notEqual", a, b); 137 | } 138 | 139 | // TODO: only for certain versions of solc 140 | //function notEqual(fixed a, fixed b, string message) public returns (bool result) { 141 | // result = (a != b); 142 | // emit AssertionEvent(result, message); 143 | //} 144 | 145 | // TODO: only for certain versions of solc 146 | //function notEqual(ufixed a, ufixed b, string message) public returns (bool result) { 147 | // result = (a != b); 148 | // emit AssertionEvent(result, message); 149 | //} 150 | 151 | function notEqual(address a, address b, string memory message) public returns (bool result) { 152 | result = (a != b); 153 | emit AssertionEventAddress(result, message, "notEqual", a, b); 154 | } 155 | 156 | function notEqual(bytes32 a, bytes32 b, string memory message) public returns (bool result) { 157 | result = (a != b); 158 | emit AssertionEventBytes32(result, message, "notEqual", a, b); 159 | } 160 | 161 | function notEqual(string memory a, string memory b, string memory message) public returns (bool result) { 162 | result = (keccak256(abi.encodePacked(a)) != keccak256(abi.encodePacked(b))); 163 | emit AssertionEventString(result, message, "notEqual", a, b); 164 | } 165 | 166 | /*----------------- Greater than --------------------*/ 167 | function greaterThan(uint256 a, uint256 b, string memory message) public returns (bool result) { 168 | result = (a > b); 169 | emit AssertionEventUint(result, message, "greaterThan", a, b); 170 | } 171 | 172 | function greaterThan(int256 a, int256 b, string memory message) public returns (bool result) { 173 | result = (a > b); 174 | emit AssertionEventInt(result, message, "greaterThan", a, b); 175 | } 176 | // TODO: safely compare between uint and int 177 | function greaterThan(uint256 a, int256 b, string memory message) public returns (bool result) { 178 | if(b < int(0)) { 179 | // int is negative uint "a" always greater 180 | result = true; 181 | } else { 182 | result = (a > uint(b)); 183 | } 184 | emit AssertionEventUintInt(result, message, "greaterThan", a, b); 185 | } 186 | function greaterThan(int256 a, uint256 b, string memory message) public returns (bool result) { 187 | if(a < int(0)) { 188 | // int is negative uint "b" always greater 189 | result = false; 190 | } else { 191 | result = (uint(a) > b); 192 | } 193 | emit AssertionEventIntUint(result, message, "greaterThan", a, b); 194 | } 195 | /*----------------- Lesser than --------------------*/ 196 | function lesserThan(uint256 a, uint256 b, string memory message) public returns (bool result) { 197 | result = (a < b); 198 | emit AssertionEventUint(result, message, "lesserThan", a, b); 199 | } 200 | 201 | function lesserThan(int256 a, int256 b, string memory message) public returns (bool result) { 202 | result = (a < b); 203 | emit AssertionEventInt(result, message, "lesserThan", a, b); 204 | } 205 | // TODO: safely compare between uint and int 206 | function lesserThan(uint256 a, int256 b, string memory message) public returns (bool result) { 207 | if(b < int(0)) { 208 | // int is negative int "b" always lesser 209 | result = false; 210 | } else { 211 | result = (a < uint(b)); 212 | } 213 | emit AssertionEventUintInt(result, message, "lesserThan", a, b); 214 | } 215 | 216 | function lesserThan(int256 a, uint256 b, string memory message) public returns (bool result) { 217 | if(a < int(0)) { 218 | // int is negative int "a" always lesser 219 | result = true; 220 | } else { 221 | result = (uint(a) < b); 222 | } 223 | emit AssertionEventIntUint(result, message, "lesserThan", a, b); 224 | } 225 | } 226 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 GGCCCC 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- 1 | multi_claim合约实现了高效撸(一次交易claim多次)没有EOA机制的合约,并在Georli上复现了撸RND的交易 2 | https://goerli.etherscan.io/tx/0x099707df2ba0815fd2cf060b270faf2b853a1756eaad880bdca12747cf1e9e05 3 | -------------------------------------------------------------------------------- /contracts/Context.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: MIT 2 | // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) 3 | 4 | pragma solidity ^0.8.0; 5 | 6 | /** 7 | * @dev Provides information about the current execution context, including the 8 | * sender of the transaction and its data. While these are generally available 9 | * via msg.sender and msg.data, they should not be accessed in such a direct 10 | * manner, since when dealing with meta-transactions the account sending and 11 | * paying for execution may not be the actual sender (as far as an application 12 | * is concerned). 13 | * 14 | * This contract is only required for intermediate, library-like contracts. 15 | */ 16 | abstract contract Context { 17 | function _msgSender() internal view virtual returns (address) { 18 | return msg.sender; 19 | } 20 | 21 | function _msgData() internal view virtual returns (bytes calldata) { 22 | return msg.data; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /contracts/ERC20.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: MIT 2 | // OpenZeppelin Contracts v4.4.1 (token/ERC20/ERC20.sol) 3 | 4 | pragma solidity ^0.8.0; 5 | 6 | import "./IERC20.sol"; 7 | import "./IERC20Metadata.sol"; 8 | import "./Context.sol"; 9 | 10 | /** 11 | * @dev Implementation of the {IERC20} interface. 12 | * 13 | * This implementation is agnostic to the way tokens are created. This means 14 | * that a supply mechanism has to be added in a derived contract using {_mint}. 15 | * For a generic mechanism see {ERC20PresetMinterPauser}. 16 | * 17 | * TIP: For a detailed writeup see our guide 18 | * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How 19 | * to implement supply mechanisms]. 20 | * 21 | * We have followed general OpenZeppelin Contracts guidelines: functions revert 22 | * instead returning `false` on failure. This behavior is nonetheless 23 | * conventional and does not conflict with the expectations of ERC20 24 | * applications. 25 | * 26 | * Additionally, an {Approval} event is emitted on calls to {transferFrom}. 27 | * This allows applications to reconstruct the allowance for all accounts just 28 | * by listening to said events. Other implementations of the EIP may not emit 29 | * these events, as it isn't required by the specification. 30 | * 31 | * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} 32 | * functions have been added to mitigate the well-known issues around setting 33 | * allowances. See {IERC20-approve}. 34 | */ 35 | contract ERC20 is Context, IERC20, IERC20Metadata { 36 | mapping(address => uint256) private _balances; 37 | 38 | mapping(address => mapping(address => uint256)) private _allowances; 39 | 40 | uint256 private _totalSupply; 41 | 42 | string private _name; 43 | string private _symbol; 44 | 45 | /** 46 | * @dev Sets the values for {name} and {symbol}. 47 | * 48 | * The default value of {decimals} is 18. To select a different value for 49 | * {decimals} you should overload it. 50 | * 51 | * All two of these values are immutable: they can only be set once during 52 | * construction. 53 | */ 54 | constructor(string memory name_, string memory symbol_) { 55 | _name = name_; 56 | _symbol = symbol_; 57 | } 58 | 59 | /** 60 | * @dev Returns the name of the token. 61 | */ 62 | function name() public view virtual override returns (string memory) { 63 | return _name; 64 | } 65 | 66 | /** 67 | * @dev Returns the symbol of the token, usually a shorter version of the 68 | * name. 69 | */ 70 | function symbol() public view virtual override returns (string memory) { 71 | return _symbol; 72 | } 73 | 74 | /** 75 | * @dev Returns the number of decimals used to get its user representation. 76 | * For example, if `decimals` equals `2`, a balance of `505` tokens should 77 | * be displayed to a user as `5.05` (`505 / 10 ** 2`). 78 | * 79 | * Tokens usually opt for a value of 18, imitating the relationship between 80 | * Ether and Wei. This is the value {ERC20} uses, unless this function is 81 | * overridden; 82 | * 83 | * NOTE: This information is only used for _display_ purposes: it in 84 | * no way affects any of the arithmetic of the contract, including 85 | * {IERC20-balanceOf} and {IERC20-transfer}. 86 | */ 87 | function decimals() public view virtual override returns (uint8) { 88 | return 18; 89 | } 90 | 91 | /** 92 | * @dev See {IERC20-totalSupply}. 93 | */ 94 | function totalSupply() public view virtual override returns (uint256) { 95 | return _totalSupply; 96 | } 97 | 98 | /** 99 | * @dev See {IERC20-balanceOf}. 100 | */ 101 | function balanceOf(address account) public view virtual override returns (uint256) { 102 | return _balances[account]; 103 | } 104 | 105 | /** 106 | * @dev See {IERC20-transfer}. 107 | * 108 | * Requirements: 109 | * 110 | * - `recipient` cannot be the zero address. 111 | * - the caller must have a balance of at least `amount`. 112 | */ 113 | function transfer(address recipient, uint256 amount) public virtual override returns (bool) { 114 | _transfer(_msgSender(), recipient, amount); 115 | return true; 116 | } 117 | 118 | /** 119 | * @dev See {IERC20-allowance}. 120 | */ 121 | function allowance(address owner, address spender) public view virtual override returns (uint256) { 122 | return _allowances[owner][spender]; 123 | } 124 | 125 | /** 126 | * @dev See {IERC20-approve}. 127 | * 128 | * Requirements: 129 | * 130 | * - `spender` cannot be the zero address. 131 | */ 132 | function approve(address spender, uint256 amount) public virtual override returns (bool) { 133 | _approve(_msgSender(), spender, amount); 134 | return true; 135 | } 136 | 137 | /** 138 | * @dev See {IERC20-transferFrom}. 139 | * 140 | * Emits an {Approval} event indicating the updated allowance. This is not 141 | * required by the EIP. See the note at the beginning of {ERC20}. 142 | * 143 | * Requirements: 144 | * 145 | * - `sender` and `recipient` cannot be the zero address. 146 | * - `sender` must have a balance of at least `amount`. 147 | * - the caller must have allowance for ``sender``'s tokens of at least 148 | * `amount`. 149 | */ 150 | function transferFrom( 151 | address sender, 152 | address recipient, 153 | uint256 amount 154 | ) public virtual override returns (bool) { 155 | uint256 currentAllowance = _allowances[sender][_msgSender()]; 156 | require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); 157 | unchecked { 158 | _approve(sender, _msgSender(), currentAllowance - amount); 159 | } 160 | 161 | _transfer(sender, recipient, amount); 162 | 163 | return true; 164 | } 165 | 166 | /** 167 | * @dev Atomically increases the allowance granted to `spender` by the caller. 168 | * 169 | * This is an alternative to {approve} that can be used as a mitigation for 170 | * problems described in {IERC20-approve}. 171 | * 172 | * Emits an {Approval} event indicating the updated allowance. 173 | * 174 | * Requirements: 175 | * 176 | * - `spender` cannot be the zero address. 177 | */ 178 | function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { 179 | _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue); 180 | return true; 181 | } 182 | 183 | /** 184 | * @dev Atomically decreases the allowance granted to `spender` by the caller. 185 | * 186 | * This is an alternative to {approve} that can be used as a mitigation for 187 | * problems described in {IERC20-approve}. 188 | * 189 | * Emits an {Approval} event indicating the updated allowance. 190 | * 191 | * Requirements: 192 | * 193 | * - `spender` cannot be the zero address. 194 | * - `spender` must have allowance for the caller of at least 195 | * `subtractedValue`. 196 | */ 197 | function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { 198 | uint256 currentAllowance = _allowances[_msgSender()][spender]; 199 | require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); 200 | unchecked { 201 | _approve(_msgSender(), spender, currentAllowance - subtractedValue); 202 | } 203 | 204 | return true; 205 | } 206 | 207 | /** 208 | * @dev Moves `amount` of tokens from `sender` to `recipient`. 209 | * 210 | * This internal function is equivalent to {transfer}, and can be used to 211 | * e.g. implement automatic token fees, slashing mechanisms, etc. 212 | * 213 | * Emits a {Transfer} event. 214 | * 215 | * Requirements: 216 | * 217 | * - `sender` cannot be the zero address. 218 | * - `recipient` cannot be the zero address. 219 | * - `sender` must have a balance of at least `amount`. 220 | */ 221 | function _transfer( 222 | address sender, 223 | address recipient, 224 | uint256 amount 225 | ) internal virtual { 226 | require(sender != address(0), "ERC20: transfer from the zero address"); 227 | require(recipient != address(0), "ERC20: transfer to the zero address"); 228 | 229 | _beforeTokenTransfer(sender, recipient, amount); 230 | 231 | uint256 senderBalance = _balances[sender]; 232 | require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); 233 | unchecked { 234 | _balances[sender] = senderBalance - amount; 235 | } 236 | _balances[recipient] += amount; 237 | 238 | emit Transfer(sender, recipient, amount); 239 | 240 | _afterTokenTransfer(sender, recipient, amount); 241 | } 242 | 243 | /** @dev Creates `amount` tokens and assigns them to `account`, increasing 244 | * the total supply. 245 | * 246 | * Emits a {Transfer} event with `from` set to the zero address. 247 | * 248 | * Requirements: 249 | * 250 | * - `account` cannot be the zero address. 251 | */ 252 | function _mint(address account, uint256 amount) internal virtual{ 253 | require(account != address(0), "ERC20: mint to the zero address"); 254 | 255 | _beforeTokenTransfer(address(0), account, amount); 256 | 257 | _totalSupply += amount; 258 | _balances[account] += amount; 259 | emit Transfer(address(0), account, amount); 260 | 261 | _afterTokenTransfer(address(0), account, amount); 262 | } 263 | 264 | /** 265 | * @dev Destroys `amount` tokens from `account`, reducing the 266 | * total supply. 267 | * 268 | * Emits a {Transfer} event with `to` set to the zero address. 269 | * 270 | * Requirements: 271 | * 272 | * - `account` cannot be the zero address. 273 | * - `account` must have at least `amount` tokens. 274 | */ 275 | function _burn(address account, uint256 amount) internal virtual { 276 | require(account != address(0), "ERC20: burn from the zero address"); 277 | 278 | _beforeTokenTransfer(account, address(0), amount); 279 | 280 | uint256 accountBalance = _balances[account]; 281 | require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); 282 | unchecked { 283 | _balances[account] = accountBalance - amount; 284 | } 285 | _totalSupply -= amount; 286 | 287 | emit Transfer(account, address(0), amount); 288 | 289 | _afterTokenTransfer(account, address(0), amount); 290 | } 291 | 292 | /** 293 | * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. 294 | * 295 | * This internal function is equivalent to `approve`, and can be used to 296 | * e.g. set automatic allowances for certain subsystems, etc. 297 | * 298 | * Emits an {Approval} event. 299 | * 300 | * Requirements: 301 | * 302 | * - `owner` cannot be the zero address. 303 | * - `spender` cannot be the zero address. 304 | */ 305 | function _approve( 306 | address owner, 307 | address spender, 308 | uint256 amount 309 | ) internal virtual { 310 | require(owner != address(0), "ERC20: approve from the zero address"); 311 | require(spender != address(0), "ERC20: approve to the zero address"); 312 | 313 | _allowances[owner][spender] = amount; 314 | emit Approval(owner, spender, amount); 315 | } 316 | 317 | /** 318 | * @dev Hook that is called before any transfer of tokens. This includes 319 | * minting and burning. 320 | * 321 | * Calling conditions: 322 | * 323 | * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens 324 | * will be transferred to `to`. 325 | * - when `from` is zero, `amount` tokens will be minted for `to`. 326 | * - when `to` is zero, `amount` of ``from``'s tokens will be burned. 327 | * - `from` and `to` are never both zero. 328 | * 329 | * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. 330 | */ 331 | function _beforeTokenTransfer( 332 | address from, 333 | address to, 334 | uint256 amount 335 | ) internal virtual {} 336 | 337 | /** 338 | * @dev Hook that is called after any transfer of tokens. This includes 339 | * minting and burning. 340 | * 341 | * Calling conditions: 342 | * 343 | * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens 344 | * has been transferred to `to`. 345 | * - when `from` is zero, `amount` tokens have been minted for `to`. 346 | * - when `to` is zero, `amount` of ``from``'s tokens have been burned. 347 | * - `from` and `to` are never both zero. 348 | * 349 | * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. 350 | */ 351 | function _afterTokenTransfer( 352 | address from, 353 | address to, 354 | uint256 amount 355 | ) internal virtual {} 356 | } 357 | -------------------------------------------------------------------------------- /contracts/IERC20.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: MIT 2 | // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) 3 | 4 | pragma solidity ^0.8.0; 5 | 6 | /** 7 | * @dev Interface of the ERC20 standard as defined in the EIP. 8 | */ 9 | interface IERC20 { 10 | /** 11 | * @dev Returns the amount of tokens in existence. 12 | */ 13 | function totalSupply() external view returns (uint256); 14 | 15 | /** 16 | * @dev Returns the amount of tokens owned by `account`. 17 | */ 18 | function balanceOf(address account) external view returns (uint256); 19 | 20 | /** 21 | * @dev Moves `amount` tokens from the caller's account to `recipient`. 22 | * 23 | * Returns a boolean value indicating whether the operation succeeded. 24 | * 25 | * Emits a {Transfer} event. 26 | */ 27 | function transfer(address recipient, uint256 amount) external returns (bool); 28 | 29 | /** 30 | * @dev Returns the remaining number of tokens that `spender` will be 31 | * allowed to spend on behalf of `owner` through {transferFrom}. This is 32 | * zero by default. 33 | * 34 | * This value changes when {approve} or {transferFrom} are called. 35 | */ 36 | function allowance(address owner, address spender) external view returns (uint256); 37 | 38 | /** 39 | * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. 40 | * 41 | * Returns a boolean value indicating whether the operation succeeded. 42 | * 43 | * IMPORTANT: Beware that changing an allowance with this method brings the risk 44 | * that someone may use both the old and the new allowance by unfortunate 45 | * transaction ordering. One possible solution to mitigate this race 46 | * condition is to first reduce the spender's allowance to 0 and set the 47 | * desired value afterwards: 48 | * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 49 | * 50 | * Emits an {Approval} event. 51 | */ 52 | function approve(address spender, uint256 amount) external returns (bool); 53 | 54 | /** 55 | * @dev Moves `amount` tokens from `sender` to `recipient` using the 56 | * allowance mechanism. `amount` is then deducted from the caller's 57 | * allowance. 58 | * 59 | * Returns a boolean value indicating whether the operation succeeded. 60 | * 61 | * Emits a {Transfer} event. 62 | */ 63 | function transferFrom( 64 | address sender, 65 | address recipient, 66 | uint256 amount 67 | ) external returns (bool); 68 | 69 | /** 70 | * @dev Emitted when `value` tokens are moved from one account (`from`) to 71 | * another (`to`). 72 | * 73 | * Note that `value` may be zero. 74 | */ 75 | event Transfer(address indexed from, address indexed to, uint256 value); 76 | 77 | /** 78 | * @dev Emitted when the allowance of a `spender` for an `owner` is set by 79 | * a call to {approve}. `value` is the new allowance. 80 | */ 81 | event Approval(address indexed owner, address indexed spender, uint256 value); 82 | } 83 | -------------------------------------------------------------------------------- /contracts/IERC20Metadata.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: MIT 2 | // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) 3 | 4 | pragma solidity ^0.8.0; 5 | 6 | import "./IERC20.sol"; 7 | 8 | /** 9 | * @dev Interface for the optional metadata functions from the ERC20 standard. 10 | * 11 | * _Available since v4.1._ 12 | */ 13 | interface IERC20Metadata is IERC20 { 14 | /** 15 | * @dev Returns the name of the token. 16 | */ 17 | function name() external view returns (string memory); 18 | 19 | /** 20 | * @dev Returns the symbol of the token. 21 | */ 22 | function symbol() external view returns (string memory); 23 | 24 | /** 25 | * @dev Returns the decimals places of the token. 26 | */ 27 | function decimals() external view returns (uint8); 28 | } 29 | -------------------------------------------------------------------------------- /contracts/artifacts/airdrop.json: -------------------------------------------------------------------------------- 1 | { 2 | "deploy": { 3 | "VM:-": { 4 | "linkReferences": {}, 5 | "autoDeployLib": true 6 | }, 7 | "main:1": { 8 | "linkReferences": {}, 9 | "autoDeployLib": true 10 | }, 11 | "ropsten:3": { 12 | "linkReferences": {}, 13 | "autoDeployLib": true 14 | }, 15 | "rinkeby:4": { 16 | "linkReferences": {}, 17 | "autoDeployLib": true 18 | }, 19 | "kovan:42": { 20 | "linkReferences": {}, 21 | "autoDeployLib": true 22 | }, 23 | "görli:5": { 24 | "linkReferences": {}, 25 | "autoDeployLib": true 26 | }, 27 | "Custom": { 28 | "linkReferences": {}, 29 | "autoDeployLib": true 30 | } 31 | }, 32 | "data": { 33 | "bytecode": { 34 | "functionDebugData": {}, 35 | "generatedSources": [], 36 | "linkReferences": {}, 37 | "object": "", 38 | "opcodes": "", 39 | "sourceMap": "" 40 | }, 41 | "deployedBytecode": { 42 | "functionDebugData": {}, 43 | "generatedSources": [], 44 | "immutableReferences": {}, 45 | "linkReferences": {}, 46 | "object": "", 47 | "opcodes": "", 48 | "sourceMap": "" 49 | }, 50 | "gasEstimates": null, 51 | "methodIdentifiers": { 52 | "balanceOf(address)": "70a08231", 53 | "claim()": "4e71d92d", 54 | "transfer(address,uint256)": "a9059cbb" 55 | } 56 | }, 57 | "abi": [ 58 | { 59 | "inputs": [ 60 | { 61 | "internalType": "address", 62 | "name": "account", 63 | "type": "address" 64 | } 65 | ], 66 | "name": "balanceOf", 67 | "outputs": [ 68 | { 69 | "internalType": "uint256", 70 | "name": "", 71 | "type": "uint256" 72 | } 73 | ], 74 | "stateMutability": "view", 75 | "type": "function" 76 | }, 77 | { 78 | "inputs": [], 79 | "name": "claim", 80 | "outputs": [], 81 | "stateMutability": "nonpayable", 82 | "type": "function" 83 | }, 84 | { 85 | "inputs": [ 86 | { 87 | "internalType": "address", 88 | "name": "recipient", 89 | "type": "address" 90 | }, 91 | { 92 | "internalType": "uint256", 93 | "name": "amount", 94 | "type": "uint256" 95 | } 96 | ], 97 | "name": "transfer", 98 | "outputs": [], 99 | "stateMutability": "nonpayable", 100 | "type": "function" 101 | } 102 | ] 103 | } -------------------------------------------------------------------------------- /contracts/artifacts/airdrop_metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "compiler": { 3 | "version": "0.8.7+commit.e28d00a7" 4 | }, 5 | "language": "Solidity", 6 | "output": { 7 | "abi": [ 8 | { 9 | "inputs": [ 10 | { 11 | "internalType": "address", 12 | "name": "account", 13 | "type": "address" 14 | } 15 | ], 16 | "name": "balanceOf", 17 | "outputs": [ 18 | { 19 | "internalType": "uint256", 20 | "name": "", 21 | "type": "uint256" 22 | } 23 | ], 24 | "stateMutability": "view", 25 | "type": "function" 26 | }, 27 | { 28 | "inputs": [], 29 | "name": "claim", 30 | "outputs": [], 31 | "stateMutability": "nonpayable", 32 | "type": "function" 33 | }, 34 | { 35 | "inputs": [ 36 | { 37 | "internalType": "address", 38 | "name": "recipient", 39 | "type": "address" 40 | }, 41 | { 42 | "internalType": "uint256", 43 | "name": "amount", 44 | "type": "uint256" 45 | } 46 | ], 47 | "name": "transfer", 48 | "outputs": [], 49 | "stateMutability": "nonpayable", 50 | "type": "function" 51 | } 52 | ], 53 | "devdoc": { 54 | "kind": "dev", 55 | "methods": {}, 56 | "version": 1 57 | }, 58 | "userdoc": { 59 | "kind": "user", 60 | "methods": {}, 61 | "version": 1 62 | } 63 | }, 64 | "settings": { 65 | "compilationTarget": { 66 | "contracts/multi_claim.sol": "airdrop" 67 | }, 68 | "evmVersion": "london", 69 | "libraries": {}, 70 | "metadata": { 71 | "bytecodeHash": "ipfs" 72 | }, 73 | "optimizer": { 74 | "enabled": false, 75 | "runs": 200 76 | }, 77 | "remappings": [] 78 | }, 79 | "sources": { 80 | "contracts/multi_claim.sol": { 81 | "keccak256": "0xc7f96d97a68a3dd3c7f5d5fdf26e77250823af1fef3db2679ddf3fac374e9664", 82 | "license": "GPL-3.0", 83 | "urls": [ 84 | "bzz-raw://bb4dcbc4a5a1282d43a1186dec3eaede36c0e2be938dd56c47375f1bde413c4b", 85 | "dweb:/ipfs/QmVmpxsxctHWDBdvXkKfg1ubZ7B71UWx3hiweFCasPe4FS" 86 | ] 87 | } 88 | }, 89 | "version": 1 90 | } -------------------------------------------------------------------------------- /contracts/artifacts/claimer.json: -------------------------------------------------------------------------------- 1 | { 2 | "deploy": { 3 | "VM:-": { 4 | "linkReferences": {}, 5 | "autoDeployLib": true 6 | }, 7 | "main:1": { 8 | "linkReferences": {}, 9 | "autoDeployLib": true 10 | }, 11 | "ropsten:3": { 12 | "linkReferences": {}, 13 | "autoDeployLib": true 14 | }, 15 | "rinkeby:4": { 16 | "linkReferences": {}, 17 | "autoDeployLib": true 18 | }, 19 | "kovan:42": { 20 | "linkReferences": {}, 21 | "autoDeployLib": true 22 | }, 23 | "görli:5": { 24 | "linkReferences": {}, 25 | "autoDeployLib": true 26 | }, 27 | "Custom": { 28 | "linkReferences": {}, 29 | "autoDeployLib": true 30 | } 31 | }, 32 | "data": { 33 | "bytecode": { 34 | "functionDebugData": { 35 | "@_281": { 36 | "entryPoint": null, 37 | "id": 281, 38 | "parameterSlots": 2, 39 | "returnSlots": 0 40 | }, 41 | "abi_decode_t_address_fromMemory": { 42 | "entryPoint": 497, 43 | "id": null, 44 | "parameterSlots": 2, 45 | "returnSlots": 1 46 | }, 47 | "abi_decode_t_uint256_fromMemory": { 48 | "entryPoint": 518, 49 | "id": null, 50 | "parameterSlots": 2, 51 | "returnSlots": 1 52 | }, 53 | "abi_decode_tuple_t_addresst_address_fromMemory": { 54 | "entryPoint": 539, 55 | "id": null, 56 | "parameterSlots": 2, 57 | "returnSlots": 2 58 | }, 59 | "abi_decode_tuple_t_uint256_fromMemory": { 60 | "entryPoint": 603, 61 | "id": null, 62 | "parameterSlots": 2, 63 | "returnSlots": 1 64 | }, 65 | "abi_encode_t_address_to_t_address_fromStack": { 66 | "entryPoint": 648, 67 | "id": null, 68 | "parameterSlots": 2, 69 | "returnSlots": 0 70 | }, 71 | "abi_encode_t_stringliteral_3fe2d000da6af7bdd415d2422c688becd181e97a0fb579ae347854a9a441c301_to_t_string_memory_ptr_fromStack": { 72 | "entryPoint": 663, 73 | "id": null, 74 | "parameterSlots": 1, 75 | "returnSlots": 1 76 | }, 77 | "abi_encode_t_uint256_to_t_uint256_fromStack": { 78 | "entryPoint": 698, 79 | "id": null, 80 | "parameterSlots": 2, 81 | "returnSlots": 0 82 | }, 83 | "abi_encode_tuple_t_address__to_t_address__fromStack_reversed": { 84 | "entryPoint": 713, 85 | "id": null, 86 | "parameterSlots": 2, 87 | "returnSlots": 1 88 | }, 89 | "abi_encode_tuple_t_address_t_uint256__to_t_address_t_uint256__fromStack_reversed": { 90 | "entryPoint": 740, 91 | "id": null, 92 | "parameterSlots": 3, 93 | "returnSlots": 1 94 | }, 95 | "abi_encode_tuple_t_stringliteral_3fe2d000da6af7bdd415d2422c688becd181e97a0fb579ae347854a9a441c301__to_t_string_memory_ptr__fromStack_reversed": { 96 | "entryPoint": 781, 97 | "id": null, 98 | "parameterSlots": 1, 99 | "returnSlots": 1 100 | }, 101 | "allocate_unbounded": { 102 | "entryPoint": null, 103 | "id": null, 104 | "parameterSlots": 0, 105 | "returnSlots": 1 106 | }, 107 | "array_storeLengthForEncoding_t_string_memory_ptr_fromStack": { 108 | "entryPoint": 813, 109 | "id": null, 110 | "parameterSlots": 2, 111 | "returnSlots": 1 112 | }, 113 | "cleanup_t_address": { 114 | "entryPoint": 830, 115 | "id": null, 116 | "parameterSlots": 1, 117 | "returnSlots": 1 118 | }, 119 | "cleanup_t_uint160": { 120 | "entryPoint": 848, 121 | "id": null, 122 | "parameterSlots": 1, 123 | "returnSlots": 1 124 | }, 125 | "cleanup_t_uint256": { 126 | "entryPoint": 880, 127 | "id": null, 128 | "parameterSlots": 1, 129 | "returnSlots": 1 130 | }, 131 | "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": { 132 | "entryPoint": null, 133 | "id": null, 134 | "parameterSlots": 0, 135 | "returnSlots": 0 136 | }, 137 | "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": { 138 | "entryPoint": 890, 139 | "id": null, 140 | "parameterSlots": 0, 141 | "returnSlots": 0 142 | }, 143 | "store_literal_in_memory_3fe2d000da6af7bdd415d2422c688becd181e97a0fb579ae347854a9a441c301": { 144 | "entryPoint": 895, 145 | "id": null, 146 | "parameterSlots": 1, 147 | "returnSlots": 0 148 | }, 149 | "validator_revert_t_address": { 150 | "entryPoint": 936, 151 | "id": null, 152 | "parameterSlots": 1, 153 | "returnSlots": 0 154 | }, 155 | "validator_revert_t_uint256": { 156 | "entryPoint": 959, 157 | "id": null, 158 | "parameterSlots": 1, 159 | "returnSlots": 0 160 | } 161 | }, 162 | "generatedSources": [ 163 | { 164 | "ast": { 165 | "nodeType": "YulBlock", 166 | "src": "0:4018:1", 167 | "statements": [ 168 | { 169 | "body": { 170 | "nodeType": "YulBlock", 171 | "src": "70:80:1", 172 | "statements": [ 173 | { 174 | "nodeType": "YulAssignment", 175 | "src": "80:22:1", 176 | "value": { 177 | "arguments": [ 178 | { 179 | "name": "offset", 180 | "nodeType": "YulIdentifier", 181 | "src": "95:6:1" 182 | } 183 | ], 184 | "functionName": { 185 | "name": "mload", 186 | "nodeType": "YulIdentifier", 187 | "src": "89:5:1" 188 | }, 189 | "nodeType": "YulFunctionCall", 190 | "src": "89:13:1" 191 | }, 192 | "variableNames": [ 193 | { 194 | "name": "value", 195 | "nodeType": "YulIdentifier", 196 | "src": "80:5:1" 197 | } 198 | ] 199 | }, 200 | { 201 | "expression": { 202 | "arguments": [ 203 | { 204 | "name": "value", 205 | "nodeType": "YulIdentifier", 206 | "src": "138:5:1" 207 | } 208 | ], 209 | "functionName": { 210 | "name": "validator_revert_t_address", 211 | "nodeType": "YulIdentifier", 212 | "src": "111:26:1" 213 | }, 214 | "nodeType": "YulFunctionCall", 215 | "src": "111:33:1" 216 | }, 217 | "nodeType": "YulExpressionStatement", 218 | "src": "111:33:1" 219 | } 220 | ] 221 | }, 222 | "name": "abi_decode_t_address_fromMemory", 223 | "nodeType": "YulFunctionDefinition", 224 | "parameters": [ 225 | { 226 | "name": "offset", 227 | "nodeType": "YulTypedName", 228 | "src": "48:6:1", 229 | "type": "" 230 | }, 231 | { 232 | "name": "end", 233 | "nodeType": "YulTypedName", 234 | "src": "56:3:1", 235 | "type": "" 236 | } 237 | ], 238 | "returnVariables": [ 239 | { 240 | "name": "value", 241 | "nodeType": "YulTypedName", 242 | "src": "64:5:1", 243 | "type": "" 244 | } 245 | ], 246 | "src": "7:143:1" 247 | }, 248 | { 249 | "body": { 250 | "nodeType": "YulBlock", 251 | "src": "219:80:1", 252 | "statements": [ 253 | { 254 | "nodeType": "YulAssignment", 255 | "src": "229:22:1", 256 | "value": { 257 | "arguments": [ 258 | { 259 | "name": "offset", 260 | "nodeType": "YulIdentifier", 261 | "src": "244:6:1" 262 | } 263 | ], 264 | "functionName": { 265 | "name": "mload", 266 | "nodeType": "YulIdentifier", 267 | "src": "238:5:1" 268 | }, 269 | "nodeType": "YulFunctionCall", 270 | "src": "238:13:1" 271 | }, 272 | "variableNames": [ 273 | { 274 | "name": "value", 275 | "nodeType": "YulIdentifier", 276 | "src": "229:5:1" 277 | } 278 | ] 279 | }, 280 | { 281 | "expression": { 282 | "arguments": [ 283 | { 284 | "name": "value", 285 | "nodeType": "YulIdentifier", 286 | "src": "287:5:1" 287 | } 288 | ], 289 | "functionName": { 290 | "name": "validator_revert_t_uint256", 291 | "nodeType": "YulIdentifier", 292 | "src": "260:26:1" 293 | }, 294 | "nodeType": "YulFunctionCall", 295 | "src": "260:33:1" 296 | }, 297 | "nodeType": "YulExpressionStatement", 298 | "src": "260:33:1" 299 | } 300 | ] 301 | }, 302 | "name": "abi_decode_t_uint256_fromMemory", 303 | "nodeType": "YulFunctionDefinition", 304 | "parameters": [ 305 | { 306 | "name": "offset", 307 | "nodeType": "YulTypedName", 308 | "src": "197:6:1", 309 | "type": "" 310 | }, 311 | { 312 | "name": "end", 313 | "nodeType": "YulTypedName", 314 | "src": "205:3:1", 315 | "type": "" 316 | } 317 | ], 318 | "returnVariables": [ 319 | { 320 | "name": "value", 321 | "nodeType": "YulTypedName", 322 | "src": "213:5:1", 323 | "type": "" 324 | } 325 | ], 326 | "src": "156:143:1" 327 | }, 328 | { 329 | "body": { 330 | "nodeType": "YulBlock", 331 | "src": "399:413:1", 332 | "statements": [ 333 | { 334 | "body": { 335 | "nodeType": "YulBlock", 336 | "src": "445:83:1", 337 | "statements": [ 338 | { 339 | "expression": { 340 | "arguments": [], 341 | "functionName": { 342 | "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", 343 | "nodeType": "YulIdentifier", 344 | "src": "447:77:1" 345 | }, 346 | "nodeType": "YulFunctionCall", 347 | "src": "447:79:1" 348 | }, 349 | "nodeType": "YulExpressionStatement", 350 | "src": "447:79:1" 351 | } 352 | ] 353 | }, 354 | "condition": { 355 | "arguments": [ 356 | { 357 | "arguments": [ 358 | { 359 | "name": "dataEnd", 360 | "nodeType": "YulIdentifier", 361 | "src": "420:7:1" 362 | }, 363 | { 364 | "name": "headStart", 365 | "nodeType": "YulIdentifier", 366 | "src": "429:9:1" 367 | } 368 | ], 369 | "functionName": { 370 | "name": "sub", 371 | "nodeType": "YulIdentifier", 372 | "src": "416:3:1" 373 | }, 374 | "nodeType": "YulFunctionCall", 375 | "src": "416:23:1" 376 | }, 377 | { 378 | "kind": "number", 379 | "nodeType": "YulLiteral", 380 | "src": "441:2:1", 381 | "type": "", 382 | "value": "64" 383 | } 384 | ], 385 | "functionName": { 386 | "name": "slt", 387 | "nodeType": "YulIdentifier", 388 | "src": "412:3:1" 389 | }, 390 | "nodeType": "YulFunctionCall", 391 | "src": "412:32:1" 392 | }, 393 | "nodeType": "YulIf", 394 | "src": "409:119:1" 395 | }, 396 | { 397 | "nodeType": "YulBlock", 398 | "src": "538:128:1", 399 | "statements": [ 400 | { 401 | "nodeType": "YulVariableDeclaration", 402 | "src": "553:15:1", 403 | "value": { 404 | "kind": "number", 405 | "nodeType": "YulLiteral", 406 | "src": "567:1:1", 407 | "type": "", 408 | "value": "0" 409 | }, 410 | "variables": [ 411 | { 412 | "name": "offset", 413 | "nodeType": "YulTypedName", 414 | "src": "557:6:1", 415 | "type": "" 416 | } 417 | ] 418 | }, 419 | { 420 | "nodeType": "YulAssignment", 421 | "src": "582:74:1", 422 | "value": { 423 | "arguments": [ 424 | { 425 | "arguments": [ 426 | { 427 | "name": "headStart", 428 | "nodeType": "YulIdentifier", 429 | "src": "628:9:1" 430 | }, 431 | { 432 | "name": "offset", 433 | "nodeType": "YulIdentifier", 434 | "src": "639:6:1" 435 | } 436 | ], 437 | "functionName": { 438 | "name": "add", 439 | "nodeType": "YulIdentifier", 440 | "src": "624:3:1" 441 | }, 442 | "nodeType": "YulFunctionCall", 443 | "src": "624:22:1" 444 | }, 445 | { 446 | "name": "dataEnd", 447 | "nodeType": "YulIdentifier", 448 | "src": "648:7:1" 449 | } 450 | ], 451 | "functionName": { 452 | "name": "abi_decode_t_address_fromMemory", 453 | "nodeType": "YulIdentifier", 454 | "src": "592:31:1" 455 | }, 456 | "nodeType": "YulFunctionCall", 457 | "src": "592:64:1" 458 | }, 459 | "variableNames": [ 460 | { 461 | "name": "value0", 462 | "nodeType": "YulIdentifier", 463 | "src": "582:6:1" 464 | } 465 | ] 466 | } 467 | ] 468 | }, 469 | { 470 | "nodeType": "YulBlock", 471 | "src": "676:129:1", 472 | "statements": [ 473 | { 474 | "nodeType": "YulVariableDeclaration", 475 | "src": "691:16:1", 476 | "value": { 477 | "kind": "number", 478 | "nodeType": "YulLiteral", 479 | "src": "705:2:1", 480 | "type": "", 481 | "value": "32" 482 | }, 483 | "variables": [ 484 | { 485 | "name": "offset", 486 | "nodeType": "YulTypedName", 487 | "src": "695:6:1", 488 | "type": "" 489 | } 490 | ] 491 | }, 492 | { 493 | "nodeType": "YulAssignment", 494 | "src": "721:74:1", 495 | "value": { 496 | "arguments": [ 497 | { 498 | "arguments": [ 499 | { 500 | "name": "headStart", 501 | "nodeType": "YulIdentifier", 502 | "src": "767:9:1" 503 | }, 504 | { 505 | "name": "offset", 506 | "nodeType": "YulIdentifier", 507 | "src": "778:6:1" 508 | } 509 | ], 510 | "functionName": { 511 | "name": "add", 512 | "nodeType": "YulIdentifier", 513 | "src": "763:3:1" 514 | }, 515 | "nodeType": "YulFunctionCall", 516 | "src": "763:22:1" 517 | }, 518 | { 519 | "name": "dataEnd", 520 | "nodeType": "YulIdentifier", 521 | "src": "787:7:1" 522 | } 523 | ], 524 | "functionName": { 525 | "name": "abi_decode_t_address_fromMemory", 526 | "nodeType": "YulIdentifier", 527 | "src": "731:31:1" 528 | }, 529 | "nodeType": "YulFunctionCall", 530 | "src": "731:64:1" 531 | }, 532 | "variableNames": [ 533 | { 534 | "name": "value1", 535 | "nodeType": "YulIdentifier", 536 | "src": "721:6:1" 537 | } 538 | ] 539 | } 540 | ] 541 | } 542 | ] 543 | }, 544 | "name": "abi_decode_tuple_t_addresst_address_fromMemory", 545 | "nodeType": "YulFunctionDefinition", 546 | "parameters": [ 547 | { 548 | "name": "headStart", 549 | "nodeType": "YulTypedName", 550 | "src": "361:9:1", 551 | "type": "" 552 | }, 553 | { 554 | "name": "dataEnd", 555 | "nodeType": "YulTypedName", 556 | "src": "372:7:1", 557 | "type": "" 558 | } 559 | ], 560 | "returnVariables": [ 561 | { 562 | "name": "value0", 563 | "nodeType": "YulTypedName", 564 | "src": "384:6:1", 565 | "type": "" 566 | }, 567 | { 568 | "name": "value1", 569 | "nodeType": "YulTypedName", 570 | "src": "392:6:1", 571 | "type": "" 572 | } 573 | ], 574 | "src": "305:507:1" 575 | }, 576 | { 577 | "body": { 578 | "nodeType": "YulBlock", 579 | "src": "895:274:1", 580 | "statements": [ 581 | { 582 | "body": { 583 | "nodeType": "YulBlock", 584 | "src": "941:83:1", 585 | "statements": [ 586 | { 587 | "expression": { 588 | "arguments": [], 589 | "functionName": { 590 | "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", 591 | "nodeType": "YulIdentifier", 592 | "src": "943:77:1" 593 | }, 594 | "nodeType": "YulFunctionCall", 595 | "src": "943:79:1" 596 | }, 597 | "nodeType": "YulExpressionStatement", 598 | "src": "943:79:1" 599 | } 600 | ] 601 | }, 602 | "condition": { 603 | "arguments": [ 604 | { 605 | "arguments": [ 606 | { 607 | "name": "dataEnd", 608 | "nodeType": "YulIdentifier", 609 | "src": "916:7:1" 610 | }, 611 | { 612 | "name": "headStart", 613 | "nodeType": "YulIdentifier", 614 | "src": "925:9:1" 615 | } 616 | ], 617 | "functionName": { 618 | "name": "sub", 619 | "nodeType": "YulIdentifier", 620 | "src": "912:3:1" 621 | }, 622 | "nodeType": "YulFunctionCall", 623 | "src": "912:23:1" 624 | }, 625 | { 626 | "kind": "number", 627 | "nodeType": "YulLiteral", 628 | "src": "937:2:1", 629 | "type": "", 630 | "value": "32" 631 | } 632 | ], 633 | "functionName": { 634 | "name": "slt", 635 | "nodeType": "YulIdentifier", 636 | "src": "908:3:1" 637 | }, 638 | "nodeType": "YulFunctionCall", 639 | "src": "908:32:1" 640 | }, 641 | "nodeType": "YulIf", 642 | "src": "905:119:1" 643 | }, 644 | { 645 | "nodeType": "YulBlock", 646 | "src": "1034:128:1", 647 | "statements": [ 648 | { 649 | "nodeType": "YulVariableDeclaration", 650 | "src": "1049:15:1", 651 | "value": { 652 | "kind": "number", 653 | "nodeType": "YulLiteral", 654 | "src": "1063:1:1", 655 | "type": "", 656 | "value": "0" 657 | }, 658 | "variables": [ 659 | { 660 | "name": "offset", 661 | "nodeType": "YulTypedName", 662 | "src": "1053:6:1", 663 | "type": "" 664 | } 665 | ] 666 | }, 667 | { 668 | "nodeType": "YulAssignment", 669 | "src": "1078:74:1", 670 | "value": { 671 | "arguments": [ 672 | { 673 | "arguments": [ 674 | { 675 | "name": "headStart", 676 | "nodeType": "YulIdentifier", 677 | "src": "1124:9:1" 678 | }, 679 | { 680 | "name": "offset", 681 | "nodeType": "YulIdentifier", 682 | "src": "1135:6:1" 683 | } 684 | ], 685 | "functionName": { 686 | "name": "add", 687 | "nodeType": "YulIdentifier", 688 | "src": "1120:3:1" 689 | }, 690 | "nodeType": "YulFunctionCall", 691 | "src": "1120:22:1" 692 | }, 693 | { 694 | "name": "dataEnd", 695 | "nodeType": "YulIdentifier", 696 | "src": "1144:7:1" 697 | } 698 | ], 699 | "functionName": { 700 | "name": "abi_decode_t_uint256_fromMemory", 701 | "nodeType": "YulIdentifier", 702 | "src": "1088:31:1" 703 | }, 704 | "nodeType": "YulFunctionCall", 705 | "src": "1088:64:1" 706 | }, 707 | "variableNames": [ 708 | { 709 | "name": "value0", 710 | "nodeType": "YulIdentifier", 711 | "src": "1078:6:1" 712 | } 713 | ] 714 | } 715 | ] 716 | } 717 | ] 718 | }, 719 | "name": "abi_decode_tuple_t_uint256_fromMemory", 720 | "nodeType": "YulFunctionDefinition", 721 | "parameters": [ 722 | { 723 | "name": "headStart", 724 | "nodeType": "YulTypedName", 725 | "src": "865:9:1", 726 | "type": "" 727 | }, 728 | { 729 | "name": "dataEnd", 730 | "nodeType": "YulTypedName", 731 | "src": "876:7:1", 732 | "type": "" 733 | } 734 | ], 735 | "returnVariables": [ 736 | { 737 | "name": "value0", 738 | "nodeType": "YulTypedName", 739 | "src": "888:6:1", 740 | "type": "" 741 | } 742 | ], 743 | "src": "818:351:1" 744 | }, 745 | { 746 | "body": { 747 | "nodeType": "YulBlock", 748 | "src": "1240:53:1", 749 | "statements": [ 750 | { 751 | "expression": { 752 | "arguments": [ 753 | { 754 | "name": "pos", 755 | "nodeType": "YulIdentifier", 756 | "src": "1257:3:1" 757 | }, 758 | { 759 | "arguments": [ 760 | { 761 | "name": "value", 762 | "nodeType": "YulIdentifier", 763 | "src": "1280:5:1" 764 | } 765 | ], 766 | "functionName": { 767 | "name": "cleanup_t_address", 768 | "nodeType": "YulIdentifier", 769 | "src": "1262:17:1" 770 | }, 771 | "nodeType": "YulFunctionCall", 772 | "src": "1262:24:1" 773 | } 774 | ], 775 | "functionName": { 776 | "name": "mstore", 777 | "nodeType": "YulIdentifier", 778 | "src": "1250:6:1" 779 | }, 780 | "nodeType": "YulFunctionCall", 781 | "src": "1250:37:1" 782 | }, 783 | "nodeType": "YulExpressionStatement", 784 | "src": "1250:37:1" 785 | } 786 | ] 787 | }, 788 | "name": "abi_encode_t_address_to_t_address_fromStack", 789 | "nodeType": "YulFunctionDefinition", 790 | "parameters": [ 791 | { 792 | "name": "value", 793 | "nodeType": "YulTypedName", 794 | "src": "1228:5:1", 795 | "type": "" 796 | }, 797 | { 798 | "name": "pos", 799 | "nodeType": "YulTypedName", 800 | "src": "1235:3:1", 801 | "type": "" 802 | } 803 | ], 804 | "src": "1175:118:1" 805 | }, 806 | { 807 | "body": { 808 | "nodeType": "YulBlock", 809 | "src": "1445:219:1", 810 | "statements": [ 811 | { 812 | "nodeType": "YulAssignment", 813 | "src": "1455:73:1", 814 | "value": { 815 | "arguments": [ 816 | { 817 | "name": "pos", 818 | "nodeType": "YulIdentifier", 819 | "src": "1521:3:1" 820 | }, 821 | { 822 | "kind": "number", 823 | "nodeType": "YulLiteral", 824 | "src": "1526:1:1", 825 | "type": "", 826 | "value": "5" 827 | } 828 | ], 829 | "functionName": { 830 | "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", 831 | "nodeType": "YulIdentifier", 832 | "src": "1462:58:1" 833 | }, 834 | "nodeType": "YulFunctionCall", 835 | "src": "1462:66:1" 836 | }, 837 | "variableNames": [ 838 | { 839 | "name": "pos", 840 | "nodeType": "YulIdentifier", 841 | "src": "1455:3:1" 842 | } 843 | ] 844 | }, 845 | { 846 | "expression": { 847 | "arguments": [ 848 | { 849 | "name": "pos", 850 | "nodeType": "YulIdentifier", 851 | "src": "1626:3:1" 852 | } 853 | ], 854 | "functionName": { 855 | "name": "store_literal_in_memory_3fe2d000da6af7bdd415d2422c688becd181e97a0fb579ae347854a9a441c301", 856 | "nodeType": "YulIdentifier", 857 | "src": "1537:88:1" 858 | }, 859 | "nodeType": "YulFunctionCall", 860 | "src": "1537:93:1" 861 | }, 862 | "nodeType": "YulExpressionStatement", 863 | "src": "1537:93:1" 864 | }, 865 | { 866 | "nodeType": "YulAssignment", 867 | "src": "1639:19:1", 868 | "value": { 869 | "arguments": [ 870 | { 871 | "name": "pos", 872 | "nodeType": "YulIdentifier", 873 | "src": "1650:3:1" 874 | }, 875 | { 876 | "kind": "number", 877 | "nodeType": "YulLiteral", 878 | "src": "1655:2:1", 879 | "type": "", 880 | "value": "32" 881 | } 882 | ], 883 | "functionName": { 884 | "name": "add", 885 | "nodeType": "YulIdentifier", 886 | "src": "1646:3:1" 887 | }, 888 | "nodeType": "YulFunctionCall", 889 | "src": "1646:12:1" 890 | }, 891 | "variableNames": [ 892 | { 893 | "name": "end", 894 | "nodeType": "YulIdentifier", 895 | "src": "1639:3:1" 896 | } 897 | ] 898 | } 899 | ] 900 | }, 901 | "name": "abi_encode_t_stringliteral_3fe2d000da6af7bdd415d2422c688becd181e97a0fb579ae347854a9a441c301_to_t_string_memory_ptr_fromStack", 902 | "nodeType": "YulFunctionDefinition", 903 | "parameters": [ 904 | { 905 | "name": "pos", 906 | "nodeType": "YulTypedName", 907 | "src": "1433:3:1", 908 | "type": "" 909 | } 910 | ], 911 | "returnVariables": [ 912 | { 913 | "name": "end", 914 | "nodeType": "YulTypedName", 915 | "src": "1441:3:1", 916 | "type": "" 917 | } 918 | ], 919 | "src": "1299:365:1" 920 | }, 921 | { 922 | "body": { 923 | "nodeType": "YulBlock", 924 | "src": "1735:53:1", 925 | "statements": [ 926 | { 927 | "expression": { 928 | "arguments": [ 929 | { 930 | "name": "pos", 931 | "nodeType": "YulIdentifier", 932 | "src": "1752:3:1" 933 | }, 934 | { 935 | "arguments": [ 936 | { 937 | "name": "value", 938 | "nodeType": "YulIdentifier", 939 | "src": "1775:5:1" 940 | } 941 | ], 942 | "functionName": { 943 | "name": "cleanup_t_uint256", 944 | "nodeType": "YulIdentifier", 945 | "src": "1757:17:1" 946 | }, 947 | "nodeType": "YulFunctionCall", 948 | "src": "1757:24:1" 949 | } 950 | ], 951 | "functionName": { 952 | "name": "mstore", 953 | "nodeType": "YulIdentifier", 954 | "src": "1745:6:1" 955 | }, 956 | "nodeType": "YulFunctionCall", 957 | "src": "1745:37:1" 958 | }, 959 | "nodeType": "YulExpressionStatement", 960 | "src": "1745:37:1" 961 | } 962 | ] 963 | }, 964 | "name": "abi_encode_t_uint256_to_t_uint256_fromStack", 965 | "nodeType": "YulFunctionDefinition", 966 | "parameters": [ 967 | { 968 | "name": "value", 969 | "nodeType": "YulTypedName", 970 | "src": "1723:5:1", 971 | "type": "" 972 | }, 973 | { 974 | "name": "pos", 975 | "nodeType": "YulTypedName", 976 | "src": "1730:3:1", 977 | "type": "" 978 | } 979 | ], 980 | "src": "1670:118:1" 981 | }, 982 | { 983 | "body": { 984 | "nodeType": "YulBlock", 985 | "src": "1892:124:1", 986 | "statements": [ 987 | { 988 | "nodeType": "YulAssignment", 989 | "src": "1902:26:1", 990 | "value": { 991 | "arguments": [ 992 | { 993 | "name": "headStart", 994 | "nodeType": "YulIdentifier", 995 | "src": "1914:9:1" 996 | }, 997 | { 998 | "kind": "number", 999 | "nodeType": "YulLiteral", 1000 | "src": "1925:2:1", 1001 | "type": "", 1002 | "value": "32" 1003 | } 1004 | ], 1005 | "functionName": { 1006 | "name": "add", 1007 | "nodeType": "YulIdentifier", 1008 | "src": "1910:3:1" 1009 | }, 1010 | "nodeType": "YulFunctionCall", 1011 | "src": "1910:18:1" 1012 | }, 1013 | "variableNames": [ 1014 | { 1015 | "name": "tail", 1016 | "nodeType": "YulIdentifier", 1017 | "src": "1902:4:1" 1018 | } 1019 | ] 1020 | }, 1021 | { 1022 | "expression": { 1023 | "arguments": [ 1024 | { 1025 | "name": "value0", 1026 | "nodeType": "YulIdentifier", 1027 | "src": "1982:6:1" 1028 | }, 1029 | { 1030 | "arguments": [ 1031 | { 1032 | "name": "headStart", 1033 | "nodeType": "YulIdentifier", 1034 | "src": "1995:9:1" 1035 | }, 1036 | { 1037 | "kind": "number", 1038 | "nodeType": "YulLiteral", 1039 | "src": "2006:1:1", 1040 | "type": "", 1041 | "value": "0" 1042 | } 1043 | ], 1044 | "functionName": { 1045 | "name": "add", 1046 | "nodeType": "YulIdentifier", 1047 | "src": "1991:3:1" 1048 | }, 1049 | "nodeType": "YulFunctionCall", 1050 | "src": "1991:17:1" 1051 | } 1052 | ], 1053 | "functionName": { 1054 | "name": "abi_encode_t_address_to_t_address_fromStack", 1055 | "nodeType": "YulIdentifier", 1056 | "src": "1938:43:1" 1057 | }, 1058 | "nodeType": "YulFunctionCall", 1059 | "src": "1938:71:1" 1060 | }, 1061 | "nodeType": "YulExpressionStatement", 1062 | "src": "1938:71:1" 1063 | } 1064 | ] 1065 | }, 1066 | "name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed", 1067 | "nodeType": "YulFunctionDefinition", 1068 | "parameters": [ 1069 | { 1070 | "name": "headStart", 1071 | "nodeType": "YulTypedName", 1072 | "src": "1864:9:1", 1073 | "type": "" 1074 | }, 1075 | { 1076 | "name": "value0", 1077 | "nodeType": "YulTypedName", 1078 | "src": "1876:6:1", 1079 | "type": "" 1080 | } 1081 | ], 1082 | "returnVariables": [ 1083 | { 1084 | "name": "tail", 1085 | "nodeType": "YulTypedName", 1086 | "src": "1887:4:1", 1087 | "type": "" 1088 | } 1089 | ], 1090 | "src": "1794:222:1" 1091 | }, 1092 | { 1093 | "body": { 1094 | "nodeType": "YulBlock", 1095 | "src": "2148:206:1", 1096 | "statements": [ 1097 | { 1098 | "nodeType": "YulAssignment", 1099 | "src": "2158:26:1", 1100 | "value": { 1101 | "arguments": [ 1102 | { 1103 | "name": "headStart", 1104 | "nodeType": "YulIdentifier", 1105 | "src": "2170:9:1" 1106 | }, 1107 | { 1108 | "kind": "number", 1109 | "nodeType": "YulLiteral", 1110 | "src": "2181:2:1", 1111 | "type": "", 1112 | "value": "64" 1113 | } 1114 | ], 1115 | "functionName": { 1116 | "name": "add", 1117 | "nodeType": "YulIdentifier", 1118 | "src": "2166:3:1" 1119 | }, 1120 | "nodeType": "YulFunctionCall", 1121 | "src": "2166:18:1" 1122 | }, 1123 | "variableNames": [ 1124 | { 1125 | "name": "tail", 1126 | "nodeType": "YulIdentifier", 1127 | "src": "2158:4:1" 1128 | } 1129 | ] 1130 | }, 1131 | { 1132 | "expression": { 1133 | "arguments": [ 1134 | { 1135 | "name": "value0", 1136 | "nodeType": "YulIdentifier", 1137 | "src": "2238:6:1" 1138 | }, 1139 | { 1140 | "arguments": [ 1141 | { 1142 | "name": "headStart", 1143 | "nodeType": "YulIdentifier", 1144 | "src": "2251:9:1" 1145 | }, 1146 | { 1147 | "kind": "number", 1148 | "nodeType": "YulLiteral", 1149 | "src": "2262:1:1", 1150 | "type": "", 1151 | "value": "0" 1152 | } 1153 | ], 1154 | "functionName": { 1155 | "name": "add", 1156 | "nodeType": "YulIdentifier", 1157 | "src": "2247:3:1" 1158 | }, 1159 | "nodeType": "YulFunctionCall", 1160 | "src": "2247:17:1" 1161 | } 1162 | ], 1163 | "functionName": { 1164 | "name": "abi_encode_t_address_to_t_address_fromStack", 1165 | "nodeType": "YulIdentifier", 1166 | "src": "2194:43:1" 1167 | }, 1168 | "nodeType": "YulFunctionCall", 1169 | "src": "2194:71:1" 1170 | }, 1171 | "nodeType": "YulExpressionStatement", 1172 | "src": "2194:71:1" 1173 | }, 1174 | { 1175 | "expression": { 1176 | "arguments": [ 1177 | { 1178 | "name": "value1", 1179 | "nodeType": "YulIdentifier", 1180 | "src": "2319:6:1" 1181 | }, 1182 | { 1183 | "arguments": [ 1184 | { 1185 | "name": "headStart", 1186 | "nodeType": "YulIdentifier", 1187 | "src": "2332:9:1" 1188 | }, 1189 | { 1190 | "kind": "number", 1191 | "nodeType": "YulLiteral", 1192 | "src": "2343:2:1", 1193 | "type": "", 1194 | "value": "32" 1195 | } 1196 | ], 1197 | "functionName": { 1198 | "name": "add", 1199 | "nodeType": "YulIdentifier", 1200 | "src": "2328:3:1" 1201 | }, 1202 | "nodeType": "YulFunctionCall", 1203 | "src": "2328:18:1" 1204 | } 1205 | ], 1206 | "functionName": { 1207 | "name": "abi_encode_t_uint256_to_t_uint256_fromStack", 1208 | "nodeType": "YulIdentifier", 1209 | "src": "2275:43:1" 1210 | }, 1211 | "nodeType": "YulFunctionCall", 1212 | "src": "2275:72:1" 1213 | }, 1214 | "nodeType": "YulExpressionStatement", 1215 | "src": "2275:72:1" 1216 | } 1217 | ] 1218 | }, 1219 | "name": "abi_encode_tuple_t_address_t_uint256__to_t_address_t_uint256__fromStack_reversed", 1220 | "nodeType": "YulFunctionDefinition", 1221 | "parameters": [ 1222 | { 1223 | "name": "headStart", 1224 | "nodeType": "YulTypedName", 1225 | "src": "2112:9:1", 1226 | "type": "" 1227 | }, 1228 | { 1229 | "name": "value1", 1230 | "nodeType": "YulTypedName", 1231 | "src": "2124:6:1", 1232 | "type": "" 1233 | }, 1234 | { 1235 | "name": "value0", 1236 | "nodeType": "YulTypedName", 1237 | "src": "2132:6:1", 1238 | "type": "" 1239 | } 1240 | ], 1241 | "returnVariables": [ 1242 | { 1243 | "name": "tail", 1244 | "nodeType": "YulTypedName", 1245 | "src": "2143:4:1", 1246 | "type": "" 1247 | } 1248 | ], 1249 | "src": "2022:332:1" 1250 | }, 1251 | { 1252 | "body": { 1253 | "nodeType": "YulBlock", 1254 | "src": "2531:248:1", 1255 | "statements": [ 1256 | { 1257 | "nodeType": "YulAssignment", 1258 | "src": "2541:26:1", 1259 | "value": { 1260 | "arguments": [ 1261 | { 1262 | "name": "headStart", 1263 | "nodeType": "YulIdentifier", 1264 | "src": "2553:9:1" 1265 | }, 1266 | { 1267 | "kind": "number", 1268 | "nodeType": "YulLiteral", 1269 | "src": "2564:2:1", 1270 | "type": "", 1271 | "value": "32" 1272 | } 1273 | ], 1274 | "functionName": { 1275 | "name": "add", 1276 | "nodeType": "YulIdentifier", 1277 | "src": "2549:3:1" 1278 | }, 1279 | "nodeType": "YulFunctionCall", 1280 | "src": "2549:18:1" 1281 | }, 1282 | "variableNames": [ 1283 | { 1284 | "name": "tail", 1285 | "nodeType": "YulIdentifier", 1286 | "src": "2541:4:1" 1287 | } 1288 | ] 1289 | }, 1290 | { 1291 | "expression": { 1292 | "arguments": [ 1293 | { 1294 | "arguments": [ 1295 | { 1296 | "name": "headStart", 1297 | "nodeType": "YulIdentifier", 1298 | "src": "2588:9:1" 1299 | }, 1300 | { 1301 | "kind": "number", 1302 | "nodeType": "YulLiteral", 1303 | "src": "2599:1:1", 1304 | "type": "", 1305 | "value": "0" 1306 | } 1307 | ], 1308 | "functionName": { 1309 | "name": "add", 1310 | "nodeType": "YulIdentifier", 1311 | "src": "2584:3:1" 1312 | }, 1313 | "nodeType": "YulFunctionCall", 1314 | "src": "2584:17:1" 1315 | }, 1316 | { 1317 | "arguments": [ 1318 | { 1319 | "name": "tail", 1320 | "nodeType": "YulIdentifier", 1321 | "src": "2607:4:1" 1322 | }, 1323 | { 1324 | "name": "headStart", 1325 | "nodeType": "YulIdentifier", 1326 | "src": "2613:9:1" 1327 | } 1328 | ], 1329 | "functionName": { 1330 | "name": "sub", 1331 | "nodeType": "YulIdentifier", 1332 | "src": "2603:3:1" 1333 | }, 1334 | "nodeType": "YulFunctionCall", 1335 | "src": "2603:20:1" 1336 | } 1337 | ], 1338 | "functionName": { 1339 | "name": "mstore", 1340 | "nodeType": "YulIdentifier", 1341 | "src": "2577:6:1" 1342 | }, 1343 | "nodeType": "YulFunctionCall", 1344 | "src": "2577:47:1" 1345 | }, 1346 | "nodeType": "YulExpressionStatement", 1347 | "src": "2577:47:1" 1348 | }, 1349 | { 1350 | "nodeType": "YulAssignment", 1351 | "src": "2633:139:1", 1352 | "value": { 1353 | "arguments": [ 1354 | { 1355 | "name": "tail", 1356 | "nodeType": "YulIdentifier", 1357 | "src": "2767:4:1" 1358 | } 1359 | ], 1360 | "functionName": { 1361 | "name": "abi_encode_t_stringliteral_3fe2d000da6af7bdd415d2422c688becd181e97a0fb579ae347854a9a441c301_to_t_string_memory_ptr_fromStack", 1362 | "nodeType": "YulIdentifier", 1363 | "src": "2641:124:1" 1364 | }, 1365 | "nodeType": "YulFunctionCall", 1366 | "src": "2641:131:1" 1367 | }, 1368 | "variableNames": [ 1369 | { 1370 | "name": "tail", 1371 | "nodeType": "YulIdentifier", 1372 | "src": "2633:4:1" 1373 | } 1374 | ] 1375 | } 1376 | ] 1377 | }, 1378 | "name": "abi_encode_tuple_t_stringliteral_3fe2d000da6af7bdd415d2422c688becd181e97a0fb579ae347854a9a441c301__to_t_string_memory_ptr__fromStack_reversed", 1379 | "nodeType": "YulFunctionDefinition", 1380 | "parameters": [ 1381 | { 1382 | "name": "headStart", 1383 | "nodeType": "YulTypedName", 1384 | "src": "2511:9:1", 1385 | "type": "" 1386 | } 1387 | ], 1388 | "returnVariables": [ 1389 | { 1390 | "name": "tail", 1391 | "nodeType": "YulTypedName", 1392 | "src": "2526:4:1", 1393 | "type": "" 1394 | } 1395 | ], 1396 | "src": "2360:419:1" 1397 | }, 1398 | { 1399 | "body": { 1400 | "nodeType": "YulBlock", 1401 | "src": "2825:35:1", 1402 | "statements": [ 1403 | { 1404 | "nodeType": "YulAssignment", 1405 | "src": "2835:19:1", 1406 | "value": { 1407 | "arguments": [ 1408 | { 1409 | "kind": "number", 1410 | "nodeType": "YulLiteral", 1411 | "src": "2851:2:1", 1412 | "type": "", 1413 | "value": "64" 1414 | } 1415 | ], 1416 | "functionName": { 1417 | "name": "mload", 1418 | "nodeType": "YulIdentifier", 1419 | "src": "2845:5:1" 1420 | }, 1421 | "nodeType": "YulFunctionCall", 1422 | "src": "2845:9:1" 1423 | }, 1424 | "variableNames": [ 1425 | { 1426 | "name": "memPtr", 1427 | "nodeType": "YulIdentifier", 1428 | "src": "2835:6:1" 1429 | } 1430 | ] 1431 | } 1432 | ] 1433 | }, 1434 | "name": "allocate_unbounded", 1435 | "nodeType": "YulFunctionDefinition", 1436 | "returnVariables": [ 1437 | { 1438 | "name": "memPtr", 1439 | "nodeType": "YulTypedName", 1440 | "src": "2818:6:1", 1441 | "type": "" 1442 | } 1443 | ], 1444 | "src": "2785:75:1" 1445 | }, 1446 | { 1447 | "body": { 1448 | "nodeType": "YulBlock", 1449 | "src": "2962:73:1", 1450 | "statements": [ 1451 | { 1452 | "expression": { 1453 | "arguments": [ 1454 | { 1455 | "name": "pos", 1456 | "nodeType": "YulIdentifier", 1457 | "src": "2979:3:1" 1458 | }, 1459 | { 1460 | "name": "length", 1461 | "nodeType": "YulIdentifier", 1462 | "src": "2984:6:1" 1463 | } 1464 | ], 1465 | "functionName": { 1466 | "name": "mstore", 1467 | "nodeType": "YulIdentifier", 1468 | "src": "2972:6:1" 1469 | }, 1470 | "nodeType": "YulFunctionCall", 1471 | "src": "2972:19:1" 1472 | }, 1473 | "nodeType": "YulExpressionStatement", 1474 | "src": "2972:19:1" 1475 | }, 1476 | { 1477 | "nodeType": "YulAssignment", 1478 | "src": "3000:29:1", 1479 | "value": { 1480 | "arguments": [ 1481 | { 1482 | "name": "pos", 1483 | "nodeType": "YulIdentifier", 1484 | "src": "3019:3:1" 1485 | }, 1486 | { 1487 | "kind": "number", 1488 | "nodeType": "YulLiteral", 1489 | "src": "3024:4:1", 1490 | "type": "", 1491 | "value": "0x20" 1492 | } 1493 | ], 1494 | "functionName": { 1495 | "name": "add", 1496 | "nodeType": "YulIdentifier", 1497 | "src": "3015:3:1" 1498 | }, 1499 | "nodeType": "YulFunctionCall", 1500 | "src": "3015:14:1" 1501 | }, 1502 | "variableNames": [ 1503 | { 1504 | "name": "updated_pos", 1505 | "nodeType": "YulIdentifier", 1506 | "src": "3000:11:1" 1507 | } 1508 | ] 1509 | } 1510 | ] 1511 | }, 1512 | "name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack", 1513 | "nodeType": "YulFunctionDefinition", 1514 | "parameters": [ 1515 | { 1516 | "name": "pos", 1517 | "nodeType": "YulTypedName", 1518 | "src": "2934:3:1", 1519 | "type": "" 1520 | }, 1521 | { 1522 | "name": "length", 1523 | "nodeType": "YulTypedName", 1524 | "src": "2939:6:1", 1525 | "type": "" 1526 | } 1527 | ], 1528 | "returnVariables": [ 1529 | { 1530 | "name": "updated_pos", 1531 | "nodeType": "YulTypedName", 1532 | "src": "2950:11:1", 1533 | "type": "" 1534 | } 1535 | ], 1536 | "src": "2866:169:1" 1537 | }, 1538 | { 1539 | "body": { 1540 | "nodeType": "YulBlock", 1541 | "src": "3086:51:1", 1542 | "statements": [ 1543 | { 1544 | "nodeType": "YulAssignment", 1545 | "src": "3096:35:1", 1546 | "value": { 1547 | "arguments": [ 1548 | { 1549 | "name": "value", 1550 | "nodeType": "YulIdentifier", 1551 | "src": "3125:5:1" 1552 | } 1553 | ], 1554 | "functionName": { 1555 | "name": "cleanup_t_uint160", 1556 | "nodeType": "YulIdentifier", 1557 | "src": "3107:17:1" 1558 | }, 1559 | "nodeType": "YulFunctionCall", 1560 | "src": "3107:24:1" 1561 | }, 1562 | "variableNames": [ 1563 | { 1564 | "name": "cleaned", 1565 | "nodeType": "YulIdentifier", 1566 | "src": "3096:7:1" 1567 | } 1568 | ] 1569 | } 1570 | ] 1571 | }, 1572 | "name": "cleanup_t_address", 1573 | "nodeType": "YulFunctionDefinition", 1574 | "parameters": [ 1575 | { 1576 | "name": "value", 1577 | "nodeType": "YulTypedName", 1578 | "src": "3068:5:1", 1579 | "type": "" 1580 | } 1581 | ], 1582 | "returnVariables": [ 1583 | { 1584 | "name": "cleaned", 1585 | "nodeType": "YulTypedName", 1586 | "src": "3078:7:1", 1587 | "type": "" 1588 | } 1589 | ], 1590 | "src": "3041:96:1" 1591 | }, 1592 | { 1593 | "body": { 1594 | "nodeType": "YulBlock", 1595 | "src": "3188:81:1", 1596 | "statements": [ 1597 | { 1598 | "nodeType": "YulAssignment", 1599 | "src": "3198:65:1", 1600 | "value": { 1601 | "arguments": [ 1602 | { 1603 | "name": "value", 1604 | "nodeType": "YulIdentifier", 1605 | "src": "3213:5:1" 1606 | }, 1607 | { 1608 | "kind": "number", 1609 | "nodeType": "YulLiteral", 1610 | "src": "3220:42:1", 1611 | "type": "", 1612 | "value": "0xffffffffffffffffffffffffffffffffffffffff" 1613 | } 1614 | ], 1615 | "functionName": { 1616 | "name": "and", 1617 | "nodeType": "YulIdentifier", 1618 | "src": "3209:3:1" 1619 | }, 1620 | "nodeType": "YulFunctionCall", 1621 | "src": "3209:54:1" 1622 | }, 1623 | "variableNames": [ 1624 | { 1625 | "name": "cleaned", 1626 | "nodeType": "YulIdentifier", 1627 | "src": "3198:7:1" 1628 | } 1629 | ] 1630 | } 1631 | ] 1632 | }, 1633 | "name": "cleanup_t_uint160", 1634 | "nodeType": "YulFunctionDefinition", 1635 | "parameters": [ 1636 | { 1637 | "name": "value", 1638 | "nodeType": "YulTypedName", 1639 | "src": "3170:5:1", 1640 | "type": "" 1641 | } 1642 | ], 1643 | "returnVariables": [ 1644 | { 1645 | "name": "cleaned", 1646 | "nodeType": "YulTypedName", 1647 | "src": "3180:7:1", 1648 | "type": "" 1649 | } 1650 | ], 1651 | "src": "3143:126:1" 1652 | }, 1653 | { 1654 | "body": { 1655 | "nodeType": "YulBlock", 1656 | "src": "3320:32:1", 1657 | "statements": [ 1658 | { 1659 | "nodeType": "YulAssignment", 1660 | "src": "3330:16:1", 1661 | "value": { 1662 | "name": "value", 1663 | "nodeType": "YulIdentifier", 1664 | "src": "3341:5:1" 1665 | }, 1666 | "variableNames": [ 1667 | { 1668 | "name": "cleaned", 1669 | "nodeType": "YulIdentifier", 1670 | "src": "3330:7:1" 1671 | } 1672 | ] 1673 | } 1674 | ] 1675 | }, 1676 | "name": "cleanup_t_uint256", 1677 | "nodeType": "YulFunctionDefinition", 1678 | "parameters": [ 1679 | { 1680 | "name": "value", 1681 | "nodeType": "YulTypedName", 1682 | "src": "3302:5:1", 1683 | "type": "" 1684 | } 1685 | ], 1686 | "returnVariables": [ 1687 | { 1688 | "name": "cleaned", 1689 | "nodeType": "YulTypedName", 1690 | "src": "3312:7:1", 1691 | "type": "" 1692 | } 1693 | ], 1694 | "src": "3275:77:1" 1695 | }, 1696 | { 1697 | "body": { 1698 | "nodeType": "YulBlock", 1699 | "src": "3447:28:1", 1700 | "statements": [ 1701 | { 1702 | "expression": { 1703 | "arguments": [ 1704 | { 1705 | "kind": "number", 1706 | "nodeType": "YulLiteral", 1707 | "src": "3464:1:1", 1708 | "type": "", 1709 | "value": "0" 1710 | }, 1711 | { 1712 | "kind": "number", 1713 | "nodeType": "YulLiteral", 1714 | "src": "3467:1:1", 1715 | "type": "", 1716 | "value": "0" 1717 | } 1718 | ], 1719 | "functionName": { 1720 | "name": "revert", 1721 | "nodeType": "YulIdentifier", 1722 | "src": "3457:6:1" 1723 | }, 1724 | "nodeType": "YulFunctionCall", 1725 | "src": "3457:12:1" 1726 | }, 1727 | "nodeType": "YulExpressionStatement", 1728 | "src": "3457:12:1" 1729 | } 1730 | ] 1731 | }, 1732 | "name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db", 1733 | "nodeType": "YulFunctionDefinition", 1734 | "src": "3358:117:1" 1735 | }, 1736 | { 1737 | "body": { 1738 | "nodeType": "YulBlock", 1739 | "src": "3570:28:1", 1740 | "statements": [ 1741 | { 1742 | "expression": { 1743 | "arguments": [ 1744 | { 1745 | "kind": "number", 1746 | "nodeType": "YulLiteral", 1747 | "src": "3587:1:1", 1748 | "type": "", 1749 | "value": "0" 1750 | }, 1751 | { 1752 | "kind": "number", 1753 | "nodeType": "YulLiteral", 1754 | "src": "3590:1:1", 1755 | "type": "", 1756 | "value": "0" 1757 | } 1758 | ], 1759 | "functionName": { 1760 | "name": "revert", 1761 | "nodeType": "YulIdentifier", 1762 | "src": "3580:6:1" 1763 | }, 1764 | "nodeType": "YulFunctionCall", 1765 | "src": "3580:12:1" 1766 | }, 1767 | "nodeType": "YulExpressionStatement", 1768 | "src": "3580:12:1" 1769 | } 1770 | ] 1771 | }, 1772 | "name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b", 1773 | "nodeType": "YulFunctionDefinition", 1774 | "src": "3481:117:1" 1775 | }, 1776 | { 1777 | "body": { 1778 | "nodeType": "YulBlock", 1779 | "src": "3710:49:1", 1780 | "statements": [ 1781 | { 1782 | "expression": { 1783 | "arguments": [ 1784 | { 1785 | "arguments": [ 1786 | { 1787 | "name": "memPtr", 1788 | "nodeType": "YulIdentifier", 1789 | "src": "3732:6:1" 1790 | }, 1791 | { 1792 | "kind": "number", 1793 | "nodeType": "YulLiteral", 1794 | "src": "3740:1:1", 1795 | "type": "", 1796 | "value": "0" 1797 | } 1798 | ], 1799 | "functionName": { 1800 | "name": "add", 1801 | "nodeType": "YulIdentifier", 1802 | "src": "3728:3:1" 1803 | }, 1804 | "nodeType": "YulFunctionCall", 1805 | "src": "3728:14:1" 1806 | }, 1807 | { 1808 | "hexValue": "4f68206e6f", 1809 | "kind": "string", 1810 | "nodeType": "YulLiteral", 1811 | "src": "3744:7:1", 1812 | "type": "", 1813 | "value": "Oh no" 1814 | } 1815 | ], 1816 | "functionName": { 1817 | "name": "mstore", 1818 | "nodeType": "YulIdentifier", 1819 | "src": "3721:6:1" 1820 | }, 1821 | "nodeType": "YulFunctionCall", 1822 | "src": "3721:31:1" 1823 | }, 1824 | "nodeType": "YulExpressionStatement", 1825 | "src": "3721:31:1" 1826 | } 1827 | ] 1828 | }, 1829 | "name": "store_literal_in_memory_3fe2d000da6af7bdd415d2422c688becd181e97a0fb579ae347854a9a441c301", 1830 | "nodeType": "YulFunctionDefinition", 1831 | "parameters": [ 1832 | { 1833 | "name": "memPtr", 1834 | "nodeType": "YulTypedName", 1835 | "src": "3702:6:1", 1836 | "type": "" 1837 | } 1838 | ], 1839 | "src": "3604:155:1" 1840 | }, 1841 | { 1842 | "body": { 1843 | "nodeType": "YulBlock", 1844 | "src": "3808:79:1", 1845 | "statements": [ 1846 | { 1847 | "body": { 1848 | "nodeType": "YulBlock", 1849 | "src": "3865:16:1", 1850 | "statements": [ 1851 | { 1852 | "expression": { 1853 | "arguments": [ 1854 | { 1855 | "kind": "number", 1856 | "nodeType": "YulLiteral", 1857 | "src": "3874:1:1", 1858 | "type": "", 1859 | "value": "0" 1860 | }, 1861 | { 1862 | "kind": "number", 1863 | "nodeType": "YulLiteral", 1864 | "src": "3877:1:1", 1865 | "type": "", 1866 | "value": "0" 1867 | } 1868 | ], 1869 | "functionName": { 1870 | "name": "revert", 1871 | "nodeType": "YulIdentifier", 1872 | "src": "3867:6:1" 1873 | }, 1874 | "nodeType": "YulFunctionCall", 1875 | "src": "3867:12:1" 1876 | }, 1877 | "nodeType": "YulExpressionStatement", 1878 | "src": "3867:12:1" 1879 | } 1880 | ] 1881 | }, 1882 | "condition": { 1883 | "arguments": [ 1884 | { 1885 | "arguments": [ 1886 | { 1887 | "name": "value", 1888 | "nodeType": "YulIdentifier", 1889 | "src": "3831:5:1" 1890 | }, 1891 | { 1892 | "arguments": [ 1893 | { 1894 | "name": "value", 1895 | "nodeType": "YulIdentifier", 1896 | "src": "3856:5:1" 1897 | } 1898 | ], 1899 | "functionName": { 1900 | "name": "cleanup_t_address", 1901 | "nodeType": "YulIdentifier", 1902 | "src": "3838:17:1" 1903 | }, 1904 | "nodeType": "YulFunctionCall", 1905 | "src": "3838:24:1" 1906 | } 1907 | ], 1908 | "functionName": { 1909 | "name": "eq", 1910 | "nodeType": "YulIdentifier", 1911 | "src": "3828:2:1" 1912 | }, 1913 | "nodeType": "YulFunctionCall", 1914 | "src": "3828:35:1" 1915 | } 1916 | ], 1917 | "functionName": { 1918 | "name": "iszero", 1919 | "nodeType": "YulIdentifier", 1920 | "src": "3821:6:1" 1921 | }, 1922 | "nodeType": "YulFunctionCall", 1923 | "src": "3821:43:1" 1924 | }, 1925 | "nodeType": "YulIf", 1926 | "src": "3818:63:1" 1927 | } 1928 | ] 1929 | }, 1930 | "name": "validator_revert_t_address", 1931 | "nodeType": "YulFunctionDefinition", 1932 | "parameters": [ 1933 | { 1934 | "name": "value", 1935 | "nodeType": "YulTypedName", 1936 | "src": "3801:5:1", 1937 | "type": "" 1938 | } 1939 | ], 1940 | "src": "3765:122:1" 1941 | }, 1942 | { 1943 | "body": { 1944 | "nodeType": "YulBlock", 1945 | "src": "3936:79:1", 1946 | "statements": [ 1947 | { 1948 | "body": { 1949 | "nodeType": "YulBlock", 1950 | "src": "3993:16:1", 1951 | "statements": [ 1952 | { 1953 | "expression": { 1954 | "arguments": [ 1955 | { 1956 | "kind": "number", 1957 | "nodeType": "YulLiteral", 1958 | "src": "4002:1:1", 1959 | "type": "", 1960 | "value": "0" 1961 | }, 1962 | { 1963 | "kind": "number", 1964 | "nodeType": "YulLiteral", 1965 | "src": "4005:1:1", 1966 | "type": "", 1967 | "value": "0" 1968 | } 1969 | ], 1970 | "functionName": { 1971 | "name": "revert", 1972 | "nodeType": "YulIdentifier", 1973 | "src": "3995:6:1" 1974 | }, 1975 | "nodeType": "YulFunctionCall", 1976 | "src": "3995:12:1" 1977 | }, 1978 | "nodeType": "YulExpressionStatement", 1979 | "src": "3995:12:1" 1980 | } 1981 | ] 1982 | }, 1983 | "condition": { 1984 | "arguments": [ 1985 | { 1986 | "arguments": [ 1987 | { 1988 | "name": "value", 1989 | "nodeType": "YulIdentifier", 1990 | "src": "3959:5:1" 1991 | }, 1992 | { 1993 | "arguments": [ 1994 | { 1995 | "name": "value", 1996 | "nodeType": "YulIdentifier", 1997 | "src": "3984:5:1" 1998 | } 1999 | ], 2000 | "functionName": { 2001 | "name": "cleanup_t_uint256", 2002 | "nodeType": "YulIdentifier", 2003 | "src": "3966:17:1" 2004 | }, 2005 | "nodeType": "YulFunctionCall", 2006 | "src": "3966:24:1" 2007 | } 2008 | ], 2009 | "functionName": { 2010 | "name": "eq", 2011 | "nodeType": "YulIdentifier", 2012 | "src": "3956:2:1" 2013 | }, 2014 | "nodeType": "YulFunctionCall", 2015 | "src": "3956:35:1" 2016 | } 2017 | ], 2018 | "functionName": { 2019 | "name": "iszero", 2020 | "nodeType": "YulIdentifier", 2021 | "src": "3949:6:1" 2022 | }, 2023 | "nodeType": "YulFunctionCall", 2024 | "src": "3949:43:1" 2025 | }, 2026 | "nodeType": "YulIf", 2027 | "src": "3946:63:1" 2028 | } 2029 | ] 2030 | }, 2031 | "name": "validator_revert_t_uint256", 2032 | "nodeType": "YulFunctionDefinition", 2033 | "parameters": [ 2034 | { 2035 | "name": "value", 2036 | "nodeType": "YulTypedName", 2037 | "src": "3929:5:1", 2038 | "type": "" 2039 | } 2040 | ], 2041 | "src": "3893:122:1" 2042 | } 2043 | ] 2044 | }, 2045 | "contents": "{\n\n function abi_decode_t_address_fromMemory(offset, end) -> value {\n value := mload(offset)\n validator_revert_t_address(value)\n }\n\n function abi_decode_t_uint256_fromMemory(offset, end) -> value {\n value := mload(offset)\n validator_revert_t_uint256(value)\n }\n\n function abi_decode_tuple_t_addresst_address_fromMemory(headStart, dataEnd) -> value0, value1 {\n if slt(sub(dataEnd, headStart), 64) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_address_fromMemory(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := 32\n\n value1 := abi_decode_t_address_fromMemory(add(headStart, offset), dataEnd)\n }\n\n }\n\n function abi_decode_tuple_t_uint256_fromMemory(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := 0\n\n value0 := abi_decode_t_uint256_fromMemory(add(headStart, offset), dataEnd)\n }\n\n }\n\n function abi_encode_t_address_to_t_address_fromStack(value, pos) {\n mstore(pos, cleanup_t_address(value))\n }\n\n function abi_encode_t_stringliteral_3fe2d000da6af7bdd415d2422c688becd181e97a0fb579ae347854a9a441c301_to_t_string_memory_ptr_fromStack(pos) -> end {\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, 5)\n store_literal_in_memory_3fe2d000da6af7bdd415d2422c688becd181e97a0fb579ae347854a9a441c301(pos)\n end := add(pos, 32)\n }\n\n function abi_encode_t_uint256_to_t_uint256_fromStack(value, pos) {\n mstore(pos, cleanup_t_uint256(value))\n }\n\n function abi_encode_tuple_t_address__to_t_address__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_address_to_t_address_fromStack(value0, add(headStart, 0))\n\n }\n\n function abi_encode_tuple_t_address_t_uint256__to_t_address_t_uint256__fromStack_reversed(headStart , value1, value0) -> tail {\n tail := add(headStart, 64)\n\n abi_encode_t_address_to_t_address_fromStack(value0, add(headStart, 0))\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value1, add(headStart, 32))\n\n }\n\n function abi_encode_tuple_t_stringliteral_3fe2d000da6af7bdd415d2422c688becd181e97a0fb579ae347854a9a441c301__to_t_string_memory_ptr__fromStack_reversed(headStart ) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_stringliteral_3fe2d000da6af7bdd415d2422c688becd181e97a0fb579ae347854a9a441c301_to_t_string_memory_ptr_fromStack( tail)\n\n }\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length) -> updated_pos {\n mstore(pos, length)\n updated_pos := add(pos, 0x20)\n }\n\n function cleanup_t_address(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\n }\n\n function cleanup_t_uint160(value) -> cleaned {\n cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function store_literal_in_memory_3fe2d000da6af7bdd415d2422c688becd181e97a0fb579ae347854a9a441c301(memPtr) {\n\n mstore(add(memPtr, 0), \"Oh no\")\n\n }\n\n function validator_revert_t_address(value) {\n if iszero(eq(value, cleanup_t_address(value))) { revert(0, 0) }\n }\n\n function validator_revert_t_uint256(value) {\n if iszero(eq(value, cleanup_t_uint256(value))) { revert(0, 0) }\n }\n\n}\n", 2046 | "id": 1, 2047 | "language": "Yul", 2048 | "name": "#utility.yul" 2049 | } 2050 | ], 2051 | "linkReferences": {}, 2052 | "object": "608060405234801561001057600080fd5b506040516104233803806104238339818101604052810190610032919061021b565b600073bb2a2d70d6a4b80fa2c4d4ca43a8525da430196c90508073ffffffffffffffffffffffffffffffffffffffff16634e71d92d6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561009357600080fd5b505af11580156100a7573d6000803e3d6000fd5b5050505060008173ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b81526004016100e691906102c9565b60206040518083038186803b1580156100fe57600080fd5b505afa158015610112573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610136919061025b565b90506000811161017b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101729061030d565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff1663a9059cbb84836040518363ffffffff1660e01b81526004016101b69291906102e4565b600060405180830381600087803b1580156101d057600080fd5b505af11580156101e4573d6000803e3d6000fd5b50505050505050506103d6565b600081519050610200816103a8565b92915050565b600081519050610215816103bf565b92915050565b600080604083850312156102325761023161037a565b5b6000610240858286016101f1565b9250506020610251858286016101f1565b9150509250929050565b6000602082840312156102715761027061037a565b5b600061027f84828501610206565b91505092915050565b6102918161033e565b82525050565b60006102a460058361032d565b91506102af8261037f565b602082019050919050565b6102c381610370565b82525050565b60006020820190506102de6000830184610288565b92915050565b60006040820190506102f96000830185610288565b61030660208301846102ba565b9392505050565b6000602082019050818103600083015261032681610297565b9050919050565b600082825260208201905092915050565b600061034982610350565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600080fd5b7f4f68206e6f000000000000000000000000000000000000000000000000000000600082015250565b6103b18161033e565b81146103bc57600080fd5b50565b6103c881610370565b81146103d357600080fd5b50565b603f806103e46000396000f3fe6080604052600080fdfea26469706673582212202ff906916b2d17c15d00fcebb48f75cca4a334361b34a45e0c20bead0707125764736f6c63430008070033", 2053 | "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH2 0x423 CODESIZE SUB DUP1 PUSH2 0x423 DUP4 CODECOPY DUP2 DUP2 ADD PUSH1 0x40 MSTORE DUP2 ADD SWAP1 PUSH2 0x32 SWAP2 SWAP1 PUSH2 0x21B JUMP JUMPDEST PUSH1 0x0 PUSH20 0xBB2A2D70D6A4B80FA2C4D4CA43A8525DA430196C SWAP1 POP DUP1 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0x4E71D92D PUSH1 0x40 MLOAD DUP2 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x93 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0xA7 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x0 DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0x70A08231 DUP6 PUSH1 0x40 MLOAD DUP3 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0xE6 SWAP2 SWAP1 PUSH2 0x2C9 JUMP JUMPDEST PUSH1 0x20 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 DUP7 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0xFE JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS STATICCALL ISZERO DUP1 ISZERO PUSH2 0x112 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP PUSH1 0x40 MLOAD RETURNDATASIZE PUSH1 0x1F NOT PUSH1 0x1F DUP3 ADD AND DUP3 ADD DUP1 PUSH1 0x40 MSTORE POP DUP2 ADD SWAP1 PUSH2 0x136 SWAP2 SWAP1 PUSH2 0x25B JUMP JUMPDEST SWAP1 POP PUSH1 0x0 DUP2 GT PUSH2 0x17B JUMPI PUSH1 0x40 MLOAD PUSH32 0x8C379A000000000000000000000000000000000000000000000000000000000 DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x172 SWAP1 PUSH2 0x30D JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 REVERT JUMPDEST DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH4 0xA9059CBB DUP5 DUP4 PUSH1 0x40 MLOAD DUP4 PUSH4 0xFFFFFFFF AND PUSH1 0xE0 SHL DUP2 MSTORE PUSH1 0x4 ADD PUSH2 0x1B6 SWAP3 SWAP2 SWAP1 PUSH2 0x2E4 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD DUP1 DUP4 SUB DUP2 PUSH1 0x0 DUP8 DUP1 EXTCODESIZE ISZERO DUP1 ISZERO PUSH2 0x1D0 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP GAS CALL ISZERO DUP1 ISZERO PUSH2 0x1E4 JUMPI RETURNDATASIZE PUSH1 0x0 DUP1 RETURNDATACOPY RETURNDATASIZE PUSH1 0x0 REVERT JUMPDEST POP POP POP POP POP POP POP POP PUSH2 0x3D6 JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD SWAP1 POP PUSH2 0x200 DUP2 PUSH2 0x3A8 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD SWAP1 POP PUSH2 0x215 DUP2 PUSH2 0x3BF JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH2 0x232 JUMPI PUSH2 0x231 PUSH2 0x37A JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x240 DUP6 DUP3 DUP7 ADD PUSH2 0x1F1 JUMP JUMPDEST SWAP3 POP POP PUSH1 0x20 PUSH2 0x251 DUP6 DUP3 DUP7 ADD PUSH2 0x1F1 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x271 JUMPI PUSH2 0x270 PUSH2 0x37A JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x27F DUP5 DUP3 DUP6 ADD PUSH2 0x206 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x291 DUP2 PUSH2 0x33E JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x2A4 PUSH1 0x5 DUP4 PUSH2 0x32D JUMP JUMPDEST SWAP2 POP PUSH2 0x2AF DUP3 PUSH2 0x37F JUMP JUMPDEST PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x2C3 DUP2 PUSH2 0x370 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x2DE PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x288 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 DUP3 ADD SWAP1 POP PUSH2 0x2F9 PUSH1 0x0 DUP4 ADD DUP6 PUSH2 0x288 JUMP JUMPDEST PUSH2 0x306 PUSH1 0x20 DUP4 ADD DUP5 PUSH2 0x2BA JUMP JUMPDEST SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x326 DUP2 PUSH2 0x297 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP3 DUP3 MSTORE PUSH1 0x20 DUP3 ADD SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x349 DUP3 PUSH2 0x350 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH32 0x4F68206E6F000000000000000000000000000000000000000000000000000000 PUSH1 0x0 DUP3 ADD MSTORE POP JUMP JUMPDEST PUSH2 0x3B1 DUP2 PUSH2 0x33E JUMP JUMPDEST DUP2 EQ PUSH2 0x3BC JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH2 0x3C8 DUP2 PUSH2 0x370 JUMP JUMPDEST DUP2 EQ PUSH2 0x3D3 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x3F DUP1 PUSH2 0x3E4 PUSH1 0x0 CODECOPY PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0x2F 0xF9 MOD SWAP2 PUSH12 0x2D17C15D00FCEBB48F75CCA4 LOG3 CALLVALUE CALLDATASIZE SHL CALLVALUE LOG4 0x5E 0xC KECCAK256 0xBE 0xAD SMOD SMOD SLT JUMPI PUSH5 0x736F6C6343 STOP ADDMOD SMOD STOP CALLER ", 2054 | "sourceMap": "1560:347:0:-:0;;;1583:321;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1640:14;1665:42;1640:68;;1727:6;1719:21;;;:23;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1753:15;1779:6;1771:25;;;1797:7;1771:34;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;1753:52;;1832:1;1824:7;:9;1816:26;;;;;;;;;;;;:::i;:::-;;;;;;;;;1861:6;1853:24;;;1878:8;1888:7;1853:43;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1629:275;;1583:321;;1560:347;;7:143:1;64:5;95:6;89:13;80:22;;111:33;138:5;111:33;:::i;:::-;7:143;;;;:::o;156:::-;213:5;244:6;238:13;229:22;;260:33;287:5;260:33;:::i;:::-;156:143;;;;:::o;305:507::-;384:6;392;441:2;429:9;420:7;416:23;412:32;409:119;;;447:79;;:::i;:::-;409:119;567:1;592:64;648:7;639:6;628:9;624:22;592:64;:::i;:::-;582:74;;538:128;705:2;731:64;787:7;778:6;767:9;763:22;731:64;:::i;:::-;721:74;;676:129;305:507;;;;;:::o;818:351::-;888:6;937:2;925:9;916:7;912:23;908:32;905:119;;;943:79;;:::i;:::-;905:119;1063:1;1088:64;1144:7;1135:6;1124:9;1120:22;1088:64;:::i;:::-;1078:74;;1034:128;818:351;;;;:::o;1175:118::-;1262:24;1280:5;1262:24;:::i;:::-;1257:3;1250:37;1175:118;;:::o;1299:365::-;1441:3;1462:66;1526:1;1521:3;1462:66;:::i;:::-;1455:73;;1537:93;1626:3;1537:93;:::i;:::-;1655:2;1650:3;1646:12;1639:19;;1299:365;;;:::o;1670:118::-;1757:24;1775:5;1757:24;:::i;:::-;1752:3;1745:37;1670:118;;:::o;1794:222::-;1887:4;1925:2;1914:9;1910:18;1902:26;;1938:71;2006:1;1995:9;1991:17;1982:6;1938:71;:::i;:::-;1794:222;;;;:::o;2022:332::-;2143:4;2181:2;2170:9;2166:18;2158:26;;2194:71;2262:1;2251:9;2247:17;2238:6;2194:71;:::i;:::-;2275:72;2343:2;2332:9;2328:18;2319:6;2275:72;:::i;:::-;2022:332;;;;;:::o;2360:419::-;2526:4;2564:2;2553:9;2549:18;2541:26;;2613:9;2607:4;2603:20;2599:1;2588:9;2584:17;2577:47;2641:131;2767:4;2641:131;:::i;:::-;2633:139;;2360:419;;;:::o;2866:169::-;2950:11;2984:6;2979:3;2972:19;3024:4;3019:3;3015:14;3000:29;;2866:169;;;;:::o;3041:96::-;3078:7;3107:24;3125:5;3107:24;:::i;:::-;3096:35;;3041:96;;;:::o;3143:126::-;3180:7;3220:42;3213:5;3209:54;3198:65;;3143:126;;;:::o;3275:77::-;3312:7;3341:5;3330:16;;3275:77;;;:::o;3481:117::-;3590:1;3587;3580:12;3604:155;3744:7;3740:1;3732:6;3728:14;3721:31;3604:155;:::o;3765:122::-;3838:24;3856:5;3838:24;:::i;:::-;3831:5;3828:35;3818:63;;3877:1;3874;3867:12;3818:63;3765:122;:::o;3893:::-;3966:24;3984:5;3966:24;:::i;:::-;3959:5;3956:35;3946:63;;4005:1;4002;3995:12;3946:63;3893:122;:::o;1560:347:0:-;;;;;;;" 2055 | }, 2056 | "deployedBytecode": { 2057 | "functionDebugData": {}, 2058 | "generatedSources": [], 2059 | "immutableReferences": {}, 2060 | "linkReferences": {}, 2061 | "object": "6080604052600080fdfea26469706673582212202ff906916b2d17c15d00fcebb48f75cca4a334361b34a45e0c20bead0707125764736f6c63430008070033", 2062 | "opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE PUSH1 0x0 DUP1 REVERT INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0x2F 0xF9 MOD SWAP2 PUSH12 0x2D17C15D00FCEBB48F75CCA4 LOG3 CALLVALUE CALLDATASIZE SHL CALLVALUE LOG4 0x5E 0xC KECCAK256 0xBE 0xAD SMOD SMOD SLT JUMPI PUSH5 0x736F6C6343 STOP ADDMOD SMOD STOP CALLER ", 2063 | "sourceMap": "1560:347:0:-:0;;;;;" 2064 | }, 2065 | "gasEstimates": { 2066 | "creation": { 2067 | "codeDepositCost": "12600", 2068 | "executionCost": "infinite", 2069 | "totalCost": "infinite" 2070 | } 2071 | }, 2072 | "methodIdentifiers": {} 2073 | }, 2074 | "abi": [ 2075 | { 2076 | "inputs": [ 2077 | { 2078 | "internalType": "address", 2079 | "name": "selfAdd", 2080 | "type": "address" 2081 | }, 2082 | { 2083 | "internalType": "address", 2084 | "name": "receiver", 2085 | "type": "address" 2086 | } 2087 | ], 2088 | "stateMutability": "nonpayable", 2089 | "type": "constructor" 2090 | } 2091 | ] 2092 | } -------------------------------------------------------------------------------- /contracts/artifacts/claimer_metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "compiler": { 3 | "version": "0.8.7+commit.e28d00a7" 4 | }, 5 | "language": "Solidity", 6 | "output": { 7 | "abi": [ 8 | { 9 | "inputs": [ 10 | { 11 | "internalType": "address", 12 | "name": "selfAdd", 13 | "type": "address" 14 | }, 15 | { 16 | "internalType": "address", 17 | "name": "receiver", 18 | "type": "address" 19 | } 20 | ], 21 | "stateMutability": "nonpayable", 22 | "type": "constructor" 23 | } 24 | ], 25 | "devdoc": { 26 | "kind": "dev", 27 | "methods": {}, 28 | "version": 1 29 | }, 30 | "userdoc": { 31 | "kind": "user", 32 | "methods": {}, 33 | "version": 1 34 | } 35 | }, 36 | "settings": { 37 | "compilationTarget": { 38 | "contracts/multi_claim.sol": "claimer" 39 | }, 40 | "evmVersion": "london", 41 | "libraries": {}, 42 | "metadata": { 43 | "bytecodeHash": "ipfs" 44 | }, 45 | "optimizer": { 46 | "enabled": false, 47 | "runs": 200 48 | }, 49 | "remappings": [] 50 | }, 51 | "sources": { 52 | "contracts/multi_claim.sol": { 53 | "keccak256": "0xc7f96d97a68a3dd3c7f5d5fdf26e77250823af1fef3db2679ddf3fac374e9664", 54 | "license": "GPL-3.0", 55 | "urls": [ 56 | "bzz-raw://bb4dcbc4a5a1282d43a1186dec3eaede36c0e2be938dd56c47375f1bde413c4b", 57 | "dweb:/ipfs/QmVmpxsxctHWDBdvXkKfg1ubZ7B71UWx3hiweFCasPe4FS" 58 | ] 59 | } 60 | }, 61 | "version": 1 62 | } -------------------------------------------------------------------------------- /contracts/artifacts/multiCall_metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "compiler": { 3 | "version": "0.8.7+commit.e28d00a7" 4 | }, 5 | "language": "Solidity", 6 | "output": { 7 | "abi": [ 8 | { 9 | "inputs": [ 10 | { 11 | "internalType": "uint256", 12 | "name": "times", 13 | "type": "uint256" 14 | } 15 | ], 16 | "name": "call", 17 | "outputs": [], 18 | "stateMutability": "nonpayable", 19 | "type": "function" 20 | } 21 | ], 22 | "devdoc": { 23 | "kind": "dev", 24 | "methods": {}, 25 | "version": 1 26 | }, 27 | "userdoc": { 28 | "kind": "user", 29 | "methods": {}, 30 | "version": 1 31 | } 32 | }, 33 | "settings": { 34 | "compilationTarget": { 35 | "contracts/multi_claim.sol": "multiCall" 36 | }, 37 | "evmVersion": "london", 38 | "libraries": {}, 39 | "metadata": { 40 | "bytecodeHash": "ipfs" 41 | }, 42 | "optimizer": { 43 | "enabled": false, 44 | "runs": 200 45 | }, 46 | "remappings": [] 47 | }, 48 | "sources": { 49 | "contracts/multi_claim.sol": { 50 | "keccak256": "0xc7f96d97a68a3dd3c7f5d5fdf26e77250823af1fef3db2679ddf3fac374e9664", 51 | "license": "GPL-3.0", 52 | "urls": [ 53 | "bzz-raw://bb4dcbc4a5a1282d43a1186dec3eaede36c0e2be938dd56c47375f1bde413c4b", 54 | "dweb:/ipfs/QmVmpxsxctHWDBdvXkKfg1ubZ7B71UWx3hiweFCasPe4FS" 55 | ] 56 | } 57 | }, 58 | "version": 1 59 | } -------------------------------------------------------------------------------- /contracts/artifacts/token_metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "compiler": { 3 | "version": "0.8.7+commit.e28d00a7" 4 | }, 5 | "language": "Solidity", 6 | "output": { 7 | "abi": [ 8 | { 9 | "inputs": [], 10 | "stateMutability": "nonpayable", 11 | "type": "constructor" 12 | }, 13 | { 14 | "anonymous": false, 15 | "inputs": [ 16 | { 17 | "indexed": true, 18 | "internalType": "address", 19 | "name": "owner", 20 | "type": "address" 21 | }, 22 | { 23 | "indexed": true, 24 | "internalType": "address", 25 | "name": "spender", 26 | "type": "address" 27 | }, 28 | { 29 | "indexed": false, 30 | "internalType": "uint256", 31 | "name": "value", 32 | "type": "uint256" 33 | } 34 | ], 35 | "name": "Approval", 36 | "type": "event" 37 | }, 38 | { 39 | "anonymous": false, 40 | "inputs": [ 41 | { 42 | "indexed": true, 43 | "internalType": "address", 44 | "name": "from", 45 | "type": "address" 46 | }, 47 | { 48 | "indexed": true, 49 | "internalType": "address", 50 | "name": "to", 51 | "type": "address" 52 | }, 53 | { 54 | "indexed": false, 55 | "internalType": "uint256", 56 | "name": "value", 57 | "type": "uint256" 58 | } 59 | ], 60 | "name": "Transfer", 61 | "type": "event" 62 | }, 63 | { 64 | "inputs": [], 65 | "name": "all_claim", 66 | "outputs": [ 67 | { 68 | "internalType": "uint112", 69 | "name": "", 70 | "type": "uint112" 71 | } 72 | ], 73 | "stateMutability": "view", 74 | "type": "function" 75 | }, 76 | { 77 | "inputs": [ 78 | { 79 | "internalType": "address", 80 | "name": "owner", 81 | "type": "address" 82 | }, 83 | { 84 | "internalType": "address", 85 | "name": "spender", 86 | "type": "address" 87 | } 88 | ], 89 | "name": "allowance", 90 | "outputs": [ 91 | { 92 | "internalType": "uint256", 93 | "name": "", 94 | "type": "uint256" 95 | } 96 | ], 97 | "stateMutability": "view", 98 | "type": "function" 99 | }, 100 | { 101 | "inputs": [ 102 | { 103 | "internalType": "address", 104 | "name": "spender", 105 | "type": "address" 106 | }, 107 | { 108 | "internalType": "uint256", 109 | "name": "amount", 110 | "type": "uint256" 111 | } 112 | ], 113 | "name": "approve", 114 | "outputs": [ 115 | { 116 | "internalType": "bool", 117 | "name": "", 118 | "type": "bool" 119 | } 120 | ], 121 | "stateMutability": "nonpayable", 122 | "type": "function" 123 | }, 124 | { 125 | "inputs": [ 126 | { 127 | "internalType": "address", 128 | "name": "account", 129 | "type": "address" 130 | } 131 | ], 132 | "name": "balanceOf", 133 | "outputs": [ 134 | { 135 | "internalType": "uint256", 136 | "name": "", 137 | "type": "uint256" 138 | } 139 | ], 140 | "stateMutability": "view", 141 | "type": "function" 142 | }, 143 | { 144 | "inputs": [], 145 | "name": "claim", 146 | "outputs": [], 147 | "stateMutability": "nonpayable", 148 | "type": "function" 149 | }, 150 | { 151 | "inputs": [], 152 | "name": "decimals", 153 | "outputs": [ 154 | { 155 | "internalType": "uint8", 156 | "name": "", 157 | "type": "uint8" 158 | } 159 | ], 160 | "stateMutability": "view", 161 | "type": "function" 162 | }, 163 | { 164 | "inputs": [ 165 | { 166 | "internalType": "address", 167 | "name": "spender", 168 | "type": "address" 169 | }, 170 | { 171 | "internalType": "uint256", 172 | "name": "subtractedValue", 173 | "type": "uint256" 174 | } 175 | ], 176 | "name": "decreaseAllowance", 177 | "outputs": [ 178 | { 179 | "internalType": "bool", 180 | "name": "", 181 | "type": "bool" 182 | } 183 | ], 184 | "stateMutability": "nonpayable", 185 | "type": "function" 186 | }, 187 | { 188 | "inputs": [ 189 | { 190 | "internalType": "address", 191 | "name": "spender", 192 | "type": "address" 193 | }, 194 | { 195 | "internalType": "uint256", 196 | "name": "addedValue", 197 | "type": "uint256" 198 | } 199 | ], 200 | "name": "increaseAllowance", 201 | "outputs": [ 202 | { 203 | "internalType": "bool", 204 | "name": "", 205 | "type": "bool" 206 | } 207 | ], 208 | "stateMutability": "nonpayable", 209 | "type": "function" 210 | }, 211 | { 212 | "inputs": [ 213 | { 214 | "internalType": "address", 215 | "name": "", 216 | "type": "address" 217 | } 218 | ], 219 | "name": "is_claim", 220 | "outputs": [ 221 | { 222 | "internalType": "bool", 223 | "name": "", 224 | "type": "bool" 225 | } 226 | ], 227 | "stateMutability": "view", 228 | "type": "function" 229 | }, 230 | { 231 | "inputs": [], 232 | "name": "max_token_number", 233 | "outputs": [ 234 | { 235 | "internalType": "uint112", 236 | "name": "", 237 | "type": "uint112" 238 | } 239 | ], 240 | "stateMutability": "view", 241 | "type": "function" 242 | }, 243 | { 244 | "inputs": [], 245 | "name": "name", 246 | "outputs": [ 247 | { 248 | "internalType": "string", 249 | "name": "", 250 | "type": "string" 251 | } 252 | ], 253 | "stateMutability": "view", 254 | "type": "function" 255 | }, 256 | { 257 | "inputs": [], 258 | "name": "release_time", 259 | "outputs": [ 260 | { 261 | "internalType": "uint32", 262 | "name": "", 263 | "type": "uint32" 264 | } 265 | ], 266 | "stateMutability": "view", 267 | "type": "function" 268 | }, 269 | { 270 | "inputs": [], 271 | "name": "return_claim_number", 272 | "outputs": [ 273 | { 274 | "internalType": "uint104", 275 | "name": "", 276 | "type": "uint104" 277 | } 278 | ], 279 | "stateMutability": "view", 280 | "type": "function" 281 | }, 282 | { 283 | "inputs": [ 284 | { 285 | "internalType": "address", 286 | "name": "_address", 287 | "type": "address" 288 | } 289 | ], 290 | "name": "return_is_claim", 291 | "outputs": [ 292 | { 293 | "internalType": "bool", 294 | "name": "", 295 | "type": "bool" 296 | } 297 | ], 298 | "stateMutability": "view", 299 | "type": "function" 300 | }, 301 | { 302 | "inputs": [], 303 | "name": "symbol", 304 | "outputs": [ 305 | { 306 | "internalType": "string", 307 | "name": "", 308 | "type": "string" 309 | } 310 | ], 311 | "stateMutability": "view", 312 | "type": "function" 313 | }, 314 | { 315 | "inputs": [], 316 | "name": "totalSupply", 317 | "outputs": [ 318 | { 319 | "internalType": "uint256", 320 | "name": "", 321 | "type": "uint256" 322 | } 323 | ], 324 | "stateMutability": "view", 325 | "type": "function" 326 | }, 327 | { 328 | "inputs": [ 329 | { 330 | "internalType": "address", 331 | "name": "recipient", 332 | "type": "address" 333 | }, 334 | { 335 | "internalType": "uint256", 336 | "name": "amount", 337 | "type": "uint256" 338 | } 339 | ], 340 | "name": "transfer", 341 | "outputs": [ 342 | { 343 | "internalType": "bool", 344 | "name": "", 345 | "type": "bool" 346 | } 347 | ], 348 | "stateMutability": "nonpayable", 349 | "type": "function" 350 | }, 351 | { 352 | "inputs": [ 353 | { 354 | "internalType": "address", 355 | "name": "sender", 356 | "type": "address" 357 | }, 358 | { 359 | "internalType": "address", 360 | "name": "recipient", 361 | "type": "address" 362 | }, 363 | { 364 | "internalType": "uint256", 365 | "name": "amount", 366 | "type": "uint256" 367 | } 368 | ], 369 | "name": "transferFrom", 370 | "outputs": [ 371 | { 372 | "internalType": "bool", 373 | "name": "", 374 | "type": "bool" 375 | } 376 | ], 377 | "stateMutability": "nonpayable", 378 | "type": "function" 379 | }, 380 | { 381 | "inputs": [ 382 | { 383 | "internalType": "uint256", 384 | "name": "", 385 | "type": "uint256" 386 | } 387 | ], 388 | "name": "yet_claim_people", 389 | "outputs": [ 390 | { 391 | "internalType": "address", 392 | "name": "", 393 | "type": "address" 394 | } 395 | ], 396 | "stateMutability": "view", 397 | "type": "function" 398 | } 399 | ], 400 | "devdoc": { 401 | "kind": "dev", 402 | "methods": { 403 | "allowance(address,address)": { 404 | "details": "See {IERC20-allowance}." 405 | }, 406 | "approve(address,uint256)": { 407 | "details": "See {IERC20-approve}. Requirements: - `spender` cannot be the zero address." 408 | }, 409 | "balanceOf(address)": { 410 | "details": "See {IERC20-balanceOf}." 411 | }, 412 | "decimals()": { 413 | "details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless this function is overridden; NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}." 414 | }, 415 | "decreaseAllowance(address,uint256)": { 416 | "details": "Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`." 417 | }, 418 | "increaseAllowance(address,uint256)": { 419 | "details": "Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address." 420 | }, 421 | "name()": { 422 | "details": "Returns the name of the token." 423 | }, 424 | "symbol()": { 425 | "details": "Returns the symbol of the token, usually a shorter version of the name." 426 | }, 427 | "totalSupply()": { 428 | "details": "See {IERC20-totalSupply}." 429 | }, 430 | "transfer(address,uint256)": { 431 | "details": "See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`." 432 | }, 433 | "transferFrom(address,address,uint256)": { 434 | "details": "See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`." 435 | } 436 | }, 437 | "version": 1 438 | }, 439 | "userdoc": { 440 | "kind": "user", 441 | "methods": {}, 442 | "version": 1 443 | } 444 | }, 445 | "settings": { 446 | "compilationTarget": { 447 | "contracts/token.sol": "token" 448 | }, 449 | "evmVersion": "london", 450 | "libraries": {}, 451 | "metadata": { 452 | "bytecodeHash": "ipfs" 453 | }, 454 | "optimizer": { 455 | "enabled": false, 456 | "runs": 200 457 | }, 458 | "remappings": [] 459 | }, 460 | "sources": { 461 | "contracts/Context.sol": { 462 | "keccak256": "0x81d5fc973a522c8909d60be6a201869d46aa47b030b8813f60616404628c2b94", 463 | "license": "MIT", 464 | "urls": [ 465 | "bzz-raw://9755b505799e622d964a843a8ed1fd60fedffca230178e5cb95ae9280df4dcd2", 466 | "dweb:/ipfs/QmRkhUYUUgRZ2QYJjmtQct2ubyYwS3bdUMhbuFYM12VfYn" 467 | ] 468 | }, 469 | "contracts/ERC20.sol": { 470 | "keccak256": "0x1f67b50da5debf0cc5f18792656c06cf1d0cf351d3af2f2b27bc51fc62d8dd04", 471 | "license": "MIT", 472 | "urls": [ 473 | "bzz-raw://d48d566cd667b9332fa6cc2c64f5569a398736dea5cf190b9ad8ca10916c4aee", 474 | "dweb:/ipfs/QmRYCpR644NQSbJSYimBQVbtL7WqwySwgwAupzNok2ZEqr" 475 | ] 476 | }, 477 | "contracts/IERC20.sol": { 478 | "keccak256": "0xd3498b152364c51284e38a01585debf7f69c6908fbab1da8f11a75ba5b89c251", 479 | "license": "MIT", 480 | "urls": [ 481 | "bzz-raw://bb8f6252c31c2ffb1143ca2d9e89e2cf6f031f1dd2e6a9b06fd81ab3ab6cf12b", 482 | "dweb:/ipfs/QmSJp6A2Ku5F1nZvRp8PnmKtCocurhVcXiZtKC7L86zY6b" 483 | ] 484 | }, 485 | "contracts/IERC20Metadata.sol": { 486 | "keccak256": "0x94dc88716e92464d240916e16167a8a900f88a2a954fb23cd2ac7f8f96d4d1b4", 487 | "license": "MIT", 488 | "urls": [ 489 | "bzz-raw://ad787a2de87b357623f979896b283138de1b491859c55c03ea19e5b3f85196fc", 490 | "dweb:/ipfs/QmRgyyXYMDTkwejZMpcDgmE3kgPQKkfvHGHDeunXCgTMJr" 491 | ] 492 | }, 493 | "contracts/token.sol": { 494 | "keccak256": "0xaa119d600b8b111a5692d1f3c79399ed2e0ee5e972a8a45c118bcd846067c022", 495 | "license": "MIT", 496 | "urls": [ 497 | "bzz-raw://ce7a81430053efe6f0b88cf8f2e2e8ead52f2cf2d4e3673b89b0f60a61748f5b", 498 | "dweb:/ipfs/Qmf4WJQoxbT4nLV9rwKUo8xh9dChyBgUNNSXdgADwYxzfB" 499 | ] 500 | } 501 | }, 502 | "version": 1 503 | } -------------------------------------------------------------------------------- /contracts/multi_claim.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0 2 | pragma solidity ^0.8.0; 3 | 4 | interface airdrop { 5 | function transfer(address recipient, uint256 amount) external; 6 | function balanceOf(address account) external view returns (uint256); 7 | function claim() external; 8 | } 9 | 10 | contract multiCall{ 11 | uint256 nonce = 1; 12 | function addressto(address _origin, uint256 _nonce) internal pure returns (address _address) { 13 | bytes memory data; 14 | if(_nonce == 0x00) data = abi.encodePacked(bytes1(0xd6), bytes1(0x94), _origin, bytes1(0x80)); 15 | else if(_nonce <= 0x7f) data = abi.encodePacked(bytes1(0xd6), bytes1(0x94), _origin, uint8(_nonce)); 16 | else if(_nonce <= 0xff) data = abi.encodePacked(bytes1(0xd7), bytes1(0x94), _origin, bytes1(0x81), uint8(_nonce)); 17 | else if(_nonce <= 0xffff) data = abi.encodePacked(bytes1(0xd8), bytes1(0x94), _origin, bytes1(0x82), uint16(_nonce)); 18 | else if(_nonce <= 0xffffff) data = abi.encodePacked(bytes1(0xd9), bytes1(0x94), _origin, bytes1(0x83), uint24(_nonce)); 19 | else data = abi.encodePacked(bytes1(0xda), bytes1(0x94), _origin, bytes1(0x84), uint32(_nonce)); 20 | bytes32 hash = keccak256(data); 21 | assembly { 22 | mstore(0, hash) 23 | _address := mload(0) 24 | } 25 | } 26 | function call(uint256 times) public { 27 | for(uint i=0;i0,'Oh no'); 40 | airdrop(contra).transfer(receiver, balance); 41 | } 42 | } -------------------------------------------------------------------------------- /contracts/multi_claim_with_selfdestruct.txt: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: GPL-3.0 2 | pragma solidity ^0.8.0; 3 | 4 | interface airdrop { 5 | function transfer(address recipient, uint256 amount) external; 6 | function balanceOf(address account) external view returns (uint256); 7 | function claim() external; 8 | } 9 | contract multiCall { 10 | address constant contra = address(0xbb2A2D70d6a4B80FA2C4d4Ca43a8525da430196c); 11 | function call(uint256 times) public { 12 | for(uint i=0;i0,'Oh no'); 22 | airdrop(contra).transfer(address(tx.origin), balance); 23 | selfdestruct(payable(address(msg.sender))); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /contracts/token.sol: -------------------------------------------------------------------------------- 1 | // SPDX-License-Identifier: MIT 2 | pragma solidity ^0.8.7; 3 | 4 | import "./ERC20.sol"; 5 | import "./IERC20.sol"; 6 | import "./IERC20Metadata.sol"; 7 | import "./Context.sol"; 8 | 9 | contract token is ERC20{ 10 | uint32 public release_time = uint32(block.timestamp); 11 | uint112 public constant max_token_number = uint112(37800000000000 ether); 12 | 13 | mapping(address => bool) public is_claim; 14 | address[] public yet_claim_people; 15 | uint112 public all_claim = max_token_number/2; 16 | 17 | constructor() ERC20("test", "TST"){ 18 | // _mint(0x22AD9Ecb1d31A32792c2B5201bbA4FbBDCE789Aa,uint112(max_token_number/100*12)); 19 | // _mint(0x7CCd6Bee1b7dDB2112cE505ba3fE48Ed566da347,uint112(max_token_number/100*38)); 20 | } 21 | 22 | function claim() external{ 23 | if( (uint32(block.timestamp)-release_time) <= 360 days && is_claim[msg.sender] == false ){ 24 | is_claim[msg.sender] = true; 25 | yet_claim_people.push(msg.sender); 26 | _mint(msg.sender,return_claim_number()); 27 | } 28 | } 29 | 30 | function return_claim_number() public view returns(uint104){ 31 | uint104 claim_number; 32 | 33 | if(yet_claim_people.length <= 1010){ 34 | claim_number = uint104(all_claim/100*20/1010*1); 35 | } 36 | 37 | else if(yet_claim_people.length > 1010 && yet_claim_people.length <= 101010){ 38 | claim_number = uint104((all_claim/100*80)/100000*1); 39 | } 40 | 41 | return claim_number; 42 | } 43 | 44 | function return_is_claim(address _address) public view returns(bool){ 45 | return is_claim[_address]; 46 | } 47 | } -------------------------------------------------------------------------------- /scripts/deploy_ethers.js: -------------------------------------------------------------------------------- 1 | // Right click on the script name and hit "Run" to execute 2 | (async () => { 3 | try { 4 | console.log('Running deployWithEthers script...') 5 | 6 | const contractName = 'Storage' // Change this for other contract 7 | const constructorArgs = [] // Put constructor args (if any) here for your contract 8 | 9 | // Note that the script needs the ABI which is generated from the compilation artifact. 10 | // Make sure contract is compiled and artifacts are generated 11 | const artifactsPath = `browser/contracts/artifacts/${contractName}.json` // Change this for different path 12 | 13 | const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath)) 14 | // 'web3Provider' is a remix global variable object 15 | const signer = (new ethers.providers.Web3Provider(web3Provider)).getSigner() 16 | 17 | let factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer); 18 | 19 | let contract = await factory.deploy(...constructorArgs); 20 | 21 | console.log('Contract Address: ', contract.address); 22 | 23 | // The contract is NOT deployed yet; we must wait until it is mined 24 | await contract.deployed() 25 | console.log('Deployment successful.') 26 | } catch (e) { 27 | console.log(e.message) 28 | } 29 | })() -------------------------------------------------------------------------------- /scripts/deploy_web3.js: -------------------------------------------------------------------------------- 1 | // Right click on the script name and hit "Run" to execute 2 | (async () => { 3 | try { 4 | console.log('Running deployWithWeb3 script...') 5 | 6 | const contractName = 'Storage' // Change this for other contract 7 | const constructorArgs = [] // Put constructor args (if any) here for your contract 8 | 9 | // Note that the script needs the ABI which is generated from the compilation artifact. 10 | // Make sure contract is compiled and artifacts are generated 11 | const artifactsPath = `browser/contracts/artifacts/${contractName}.json` // Change this for different path 12 | 13 | const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath)) 14 | const accounts = await web3.eth.getAccounts() 15 | 16 | let contract = new web3.eth.Contract(metadata.abi) 17 | 18 | contract = contract.deploy({ 19 | data: metadata.data.bytecode.object, 20 | arguments: constructorArgs 21 | }) 22 | 23 | const newContractInstance = await contract.send({ 24 | from: accounts[0], 25 | gas: 1500000, 26 | gasPrice: '30000000000' 27 | }) 28 | console.log('Contract deployed at address: ', newContractInstance.options.address) 29 | } catch (e) { 30 | console.log(e.message) 31 | } 32 | })() --------------------------------------------------------------------------------