Skip to content

Instantly share code, notes, and snippets.

@akshay-shah
Created February 4, 2022 09:36
Show Gist options
  • Save akshay-shah/cd573e6d7118433028aee90867eb6e1d to your computer and use it in GitHub Desktop.
Save akshay-shah/cd573e6d7118433028aee90867eb6e1d to your computer and use it in GitHub Desktop.
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.11+commit.d7f03943.js&optimize=false&runs=200&gist=
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
The 'scripts' folder contains example async/await scripts for deploying the 'Storage' contract.
For the deployment of any other contract, 'contractName' and 'constructorArgs' should be updated (along with other code if required).
Scripts have full access to the web3.js and ethers.js libraries.
To run a script, right click on file name in the file explorer and click 'Run'. Remember, Solidity file must already be compiled.
Output from script will appear in remix terminal.
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Storage
* @dev Store & retrieve value in a variable
*/
contract Storage {
uint256 number;
/**
* @dev Store value in variable
* @param num value to store
*/
function store(uint256 num) public {
number = num;
}
/**
* @dev Return value
* @return value of 'number'
*/
function retrieve() public view returns (uint256){
return number;
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Owner
* @dev Set & change owner
*/
contract Owner {
address private owner;
// event for EVM logging
event OwnerSet(address indexed oldOwner, address indexed newOwner);
// modifier to check if caller is owner
modifier isOwner() {
// If the first argument of 'require' evaluates to 'false', execution terminates and all
// changes to the state and to Ether balances are reverted.
// This used to consume all gas in old EVM versions, but not anymore.
// It is often a good idea to use 'require' to check if functions are called correctly.
// As a second argument, you can also provide an explanation about what went wrong.
require(msg.sender == owner, "Caller is not owner");
_;
}
/**
* @dev Set contract deployer as owner
*/
constructor() {
owner = msg.sender; // 'msg.sender' is sender of current call, contract deployer for a constructor
emit OwnerSet(address(0), owner);
}
/**
* @dev Change owner
* @param newOwner address of new owner
*/
function changeOwner(address newOwner) public isOwner {
emit OwnerSet(owner, newOwner);
owner = newOwner;
}
/**
* @dev Return owner address
* @return address of owner
*/
function getOwner() external view returns (address) {
return owner;
}
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
/**
* @title Ballot
* @dev Implements voting process along with vote delegation
*/
contract Ballot {
struct Voter {
uint weight; // weight is accumulated by delegation
bool voted; // if true, that person already voted
address delegate; // person delegated to
uint vote; // index of the voted proposal
}
struct Proposal {
// If you can limit the length to a certain number of bytes,
// always use one of bytes1 to bytes32 because they are much cheaper
bytes32 name; // short name (up to 32 bytes)
uint voteCount; // number of accumulated votes
}
address public chairperson;
mapping(address => Voter) public voters;
Proposal[] public proposals;
/**
* @dev Create a new ballot to choose one of 'proposalNames'.
* @param proposalNames names of proposals
*/
constructor(bytes32[] memory proposalNames) {
chairperson = msg.sender;
voters[chairperson].weight = 1;
for (uint i = 0; i < proposalNames.length; i++) {
// 'Proposal({...})' creates a temporary
// Proposal object and 'proposals.push(...)'
// appends it to the end of 'proposals'.
proposals.push(Proposal({
name: proposalNames[i],
voteCount: 0
}));
}
}
/**
* @dev Give 'voter' the right to vote on this ballot. May only be called by 'chairperson'.
* @param voter address of voter
*/
function giveRightToVote(address voter) public {
require(
msg.sender == chairperson,
"Only chairperson can give right to vote."
);
require(
!voters[voter].voted,
"The voter already voted."
);
require(voters[voter].weight == 0);
voters[voter].weight = 1;
}
/**
* @dev Delegate your vote to the voter 'to'.
* @param to address to which vote is delegated
*/
function delegate(address to) public {
Voter storage sender = voters[msg.sender];
require(!sender.voted, "You already voted.");
require(to != msg.sender, "Self-delegation is disallowed.");
while (voters[to].delegate != address(0)) {
to = voters[to].delegate;
// We found a loop in the delegation, not allowed.
require(to != msg.sender, "Found loop in delegation.");
}
sender.voted = true;
sender.delegate = to;
Voter storage delegate_ = voters[to];
if (delegate_.voted) {
// If the delegate already voted,
// directly add to the number of votes
proposals[delegate_.vote].voteCount += sender.weight;
} else {
// If the delegate did not vote yet,
// add to her weight.
delegate_.weight += sender.weight;
}
}
/**
* @dev Give your vote (including votes delegated to you) to proposal 'proposals[proposal].name'.
* @param proposal index of proposal in the proposals array
*/
function vote(uint proposal) public {
Voter storage sender = voters[msg.sender];
require(sender.weight != 0, "Has no right to vote");
require(!sender.voted, "Already voted.");
sender.voted = true;
sender.vote = proposal;
// If 'proposal' is out of the range of the array,
// this will throw automatically and revert all
// changes.
proposals[proposal].voteCount += sender.weight;
}
/**
* @dev Computes the winning proposal taking all previous votes into account.
* @return winningProposal_ index of winning proposal in the proposals array
*/
function winningProposal() public view
returns (uint winningProposal_)
{
uint winningVoteCount = 0;
for (uint p = 0; p < proposals.length; p++) {
if (proposals[p].voteCount > winningVoteCount) {
winningVoteCount = proposals[p].voteCount;
winningProposal_ = p;
}
}
}
/**
* @dev Calls winningProposal() function to get the index of the winner contained in the proposals array and then
* @return winnerName_ the name of the winner
*/
function winnerName() public view
returns (bytes32 winnerName_)
{
winnerName_ = proposals[winningProposal()].name;
}
}
{
"deploy": {
"VM:-": {
"linkReferences": {},
"autoDeployLib": true
},
"main:1": {
"linkReferences": {},
"autoDeployLib": true
},
"ropsten:3": {
"linkReferences": {},
"autoDeployLib": true
},
"rinkeby:4": {
"linkReferences": {},
"autoDeployLib": true
},
"kovan:42": {
"linkReferences": {},
"autoDeployLib": true
},
"görli:5": {
"linkReferences": {},
"autoDeployLib": true
},
"Custom": {
"linkReferences": {},
"autoDeployLib": true
}
},
"data": {
"bytecode": {
"functionDebugData": {
"@_31": {
"entryPoint": null,
"id": 31,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_decode_available_length_t_string_memory_ptr_fromMemory": {
"entryPoint": 669,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"abi_decode_t_string_memory_ptr_fromMemory": {
"entryPoint": 744,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_t_uint256_fromMemory": {
"entryPoint": 379,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_uint256t_string_memory_ptr_fromMemory": {
"entryPoint": 795,
"id": null,
"parameterSlots": 2,
"returnSlots": 2
},
"allocate_memory": {
"entryPoint": 530,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"allocate_unbounded": {
"entryPoint": 323,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
},
"array_allocation_size_t_string_memory_ptr": {
"entryPoint": 561,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint256": {
"entryPoint": 343,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"copy_memory_to_memory": {
"entryPoint": 615,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"extract_byte_array_length": {
"entryPoint": 944,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"finalize_allocation": {
"entryPoint": 476,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"panic_error_0x22": {
"entryPoint": 897,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x41": {
"entryPoint": 429,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d": {
"entryPoint": 402,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae": {
"entryPoint": 407,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": {
"entryPoint": 338,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": {
"entryPoint": 333,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"round_up_to_mul_of_32": {
"entryPoint": 412,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"validator_revert_t_uint256": {
"entryPoint": 353,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:4280:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "47:35:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "57:19:1",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "73:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "67:5:1"
},
"nodeType": "YulFunctionCall",
"src": "67:9:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "57:6:1"
}
]
}
]
},
"name": "allocate_unbounded",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "40:6:1",
"type": ""
}
],
"src": "7:75:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "177:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "194:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "197:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "187:6:1"
},
"nodeType": "YulFunctionCall",
"src": "187:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "187:12:1"
}
]
},
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulFunctionDefinition",
"src": "88:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "300:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "317:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "320:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "310:6:1"
},
"nodeType": "YulFunctionCall",
"src": "310:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "310:12:1"
}
]
},
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulFunctionDefinition",
"src": "211:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "379:32:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "389:16:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "400:5:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "389:7:1"
}
]
}
]
},
"name": "cleanup_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "361:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "371:7:1",
"type": ""
}
],
"src": "334:77:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "460:79:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "517:16:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "526:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "529:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "519:6:1"
},
"nodeType": "YulFunctionCall",
"src": "519:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "519:12:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "483:5:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "508:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "490:17:1"
},
"nodeType": "YulFunctionCall",
"src": "490:24:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "480:2:1"
},
"nodeType": "YulFunctionCall",
"src": "480:35:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "473:6:1"
},
"nodeType": "YulFunctionCall",
"src": "473:43:1"
},
"nodeType": "YulIf",
"src": "470:63:1"
}
]
},
"name": "validator_revert_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "453:5:1",
"type": ""
}
],
"src": "417:122:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "608:80:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "618:22:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "633:6:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "627:5:1"
},
"nodeType": "YulFunctionCall",
"src": "627:13:1"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "618:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "676:5:1"
}
],
"functionName": {
"name": "validator_revert_t_uint256",
"nodeType": "YulIdentifier",
"src": "649:26:1"
},
"nodeType": "YulFunctionCall",
"src": "649:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "649:33:1"
}
]
},
"name": "abi_decode_t_uint256_fromMemory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "586:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "594:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "602:5:1",
"type": ""
}
],
"src": "545:143:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "783:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "800:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "803:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "793:6:1"
},
"nodeType": "YulFunctionCall",
"src": "793:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "793:12:1"
}
]
},
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nodeType": "YulFunctionDefinition",
"src": "694:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "906:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "923:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "926:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "916:6:1"
},
"nodeType": "YulFunctionCall",
"src": "916:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "916:12:1"
}
]
},
"name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae",
"nodeType": "YulFunctionDefinition",
"src": "817:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "988:54:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "998:38:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1016:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1023:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1012:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1012:14:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1032:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "1028:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1028:7:1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "1008:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1008:28:1"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "998:6:1"
}
]
}
]
},
"name": "round_up_to_mul_of_32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "971:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "981:6:1",
"type": ""
}
],
"src": "940:102:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1076:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1093:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1096:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1086:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1086:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "1086:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1190:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1193:4:1",
"type": "",
"value": "0x41"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1183:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1183:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "1183:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1214:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1217:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1207:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1207:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "1207:15:1"
}
]
},
"name": "panic_error_0x41",
"nodeType": "YulFunctionDefinition",
"src": "1048:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1277:238:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "1287:58:1",
"value": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "1309:6:1"
},
{
"arguments": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "1339:4:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "1317:21:1"
},
"nodeType": "YulFunctionCall",
"src": "1317:27:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1305:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1305:40:1"
},
"variables": [
{
"name": "newFreePtr",
"nodeType": "YulTypedName",
"src": "1291:10:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "1456:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "1458:16:1"
},
"nodeType": "YulFunctionCall",
"src": "1458:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "1458:18:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "1399:10:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1411:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "1396:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1396:34:1"
},
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "1435:10:1"
},
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "1447:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "1432:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1432:22:1"
}
],
"functionName": {
"name": "or",
"nodeType": "YulIdentifier",
"src": "1393:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1393:62:1"
},
"nodeType": "YulIf",
"src": "1390:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1494:2:1",
"type": "",
"value": "64"
},
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "1498:10:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1487:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1487:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "1487:22:1"
}
]
},
"name": "finalize_allocation",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "1263:6:1",
"type": ""
},
{
"name": "size",
"nodeType": "YulTypedName",
"src": "1271:4:1",
"type": ""
}
],
"src": "1234:281:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1562:88:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1572:30:1",
"value": {
"arguments": [],
"functionName": {
"name": "allocate_unbounded",
"nodeType": "YulIdentifier",
"src": "1582:18:1"
},
"nodeType": "YulFunctionCall",
"src": "1582:20:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "1572:6:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "1631:6:1"
},
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "1639:4:1"
}
],
"functionName": {
"name": "finalize_allocation",
"nodeType": "YulIdentifier",
"src": "1611:19:1"
},
"nodeType": "YulFunctionCall",
"src": "1611:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "1611:33:1"
}
]
},
"name": "allocate_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "size",
"nodeType": "YulTypedName",
"src": "1546:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "1555:6:1",
"type": ""
}
],
"src": "1521:129:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1723:241:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "1828:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "1830:16:1"
},
"nodeType": "YulFunctionCall",
"src": "1830:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "1830:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1800:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1808:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "1797:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1797:30:1"
},
"nodeType": "YulIf",
"src": "1794:56:1"
},
{
"nodeType": "YulAssignment",
"src": "1860:37:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1890:6:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "1868:21:1"
},
"nodeType": "YulFunctionCall",
"src": "1868:29:1"
},
"variableNames": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "1860:4:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "1934:23:1",
"value": {
"arguments": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "1946:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1952:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1942:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1942:15:1"
},
"variableNames": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "1934:4:1"
}
]
}
]
},
"name": "array_allocation_size_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "1707:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "size",
"nodeType": "YulTypedName",
"src": "1718:4:1",
"type": ""
}
],
"src": "1656:308:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2019:258:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2029:10:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "2038:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "2033:1:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "2098:63:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "2123:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2128:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2119:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2119:11:1"
},
{
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "2142:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2147:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2138:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2138:11:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "2132:5:1"
},
"nodeType": "YulFunctionCall",
"src": "2132:18:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2112:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2112:39:1"
},
"nodeType": "YulExpressionStatement",
"src": "2112:39:1"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2059:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2062:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "2056:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2056:13:1"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "2070:19:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2072:15:1",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2081:1:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2084:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2077:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2077:10:1"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2072:1:1"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "2052:3:1",
"statements": []
},
"src": "2048:113:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2195:76:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "2245:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2250:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2241:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2241:16:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2259:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2234:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2234:27:1"
},
"nodeType": "YulExpressionStatement",
"src": "2234:27:1"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "2176:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2179:6:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "2173:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2173:13:1"
},
"nodeType": "YulIf",
"src": "2170:101:1"
}
]
},
"name": "copy_memory_to_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "2001:3:1",
"type": ""
},
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "2006:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "2011:6:1",
"type": ""
}
],
"src": "1970:307:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2378:326:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "2388:75:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2455:6:1"
}
],
"functionName": {
"name": "array_allocation_size_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "2413:41:1"
},
"nodeType": "YulFunctionCall",
"src": "2413:49:1"
}
],
"functionName": {
"name": "allocate_memory",
"nodeType": "YulIdentifier",
"src": "2397:15:1"
},
"nodeType": "YulFunctionCall",
"src": "2397:66:1"
},
"variableNames": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "2388:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "2479:5:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2486:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2472:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2472:21:1"
},
"nodeType": "YulExpressionStatement",
"src": "2472:21:1"
},
{
"nodeType": "YulVariableDeclaration",
"src": "2502:27:1",
"value": {
"arguments": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "2517:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2524:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2513:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2513:16:1"
},
"variables": [
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "2506:3:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "2567:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae",
"nodeType": "YulIdentifier",
"src": "2569:77:1"
},
"nodeType": "YulFunctionCall",
"src": "2569:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "2569:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "2548:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2553:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2544:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2544:16:1"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "2562:3:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "2541:2:1"
},
"nodeType": "YulFunctionCall",
"src": "2541:25:1"
},
"nodeType": "YulIf",
"src": "2538:112:1"
},
{
"expression": {
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "2681:3:1"
},
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "2686:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "2691:6:1"
}
],
"functionName": {
"name": "copy_memory_to_memory",
"nodeType": "YulIdentifier",
"src": "2659:21:1"
},
"nodeType": "YulFunctionCall",
"src": "2659:39:1"
},
"nodeType": "YulExpressionStatement",
"src": "2659:39:1"
}
]
},
"name": "abi_decode_available_length_t_string_memory_ptr_fromMemory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "2351:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "2356:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "2364:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "array",
"nodeType": "YulTypedName",
"src": "2372:5:1",
"type": ""
}
],
"src": "2283:421:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2797:282:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "2846:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nodeType": "YulIdentifier",
"src": "2848:77:1"
},
"nodeType": "YulFunctionCall",
"src": "2848:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "2848:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2825:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2833:4:1",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2821:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2821:17:1"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "2840:3:1"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "2817:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2817:27:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "2810:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2810:35:1"
},
"nodeType": "YulIf",
"src": "2807:122:1"
},
{
"nodeType": "YulVariableDeclaration",
"src": "2938:27:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2958:6:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "2952:5:1"
},
"nodeType": "YulFunctionCall",
"src": "2952:13:1"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "2942:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "2974:99:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "3046:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3054:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3042:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3042:17:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3061:6:1"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "3069:3:1"
}
],
"functionName": {
"name": "abi_decode_available_length_t_string_memory_ptr_fromMemory",
"nodeType": "YulIdentifier",
"src": "2983:58:1"
},
"nodeType": "YulFunctionCall",
"src": "2983:90:1"
},
"variableNames": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "2974:5:1"
}
]
}
]
},
"name": "abi_decode_t_string_memory_ptr_fromMemory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "2775:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "2783:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "array",
"nodeType": "YulTypedName",
"src": "2791:5:1",
"type": ""
}
],
"src": "2724:355:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3189:576:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "3235:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulIdentifier",
"src": "3237:77:1"
},
"nodeType": "YulFunctionCall",
"src": "3237:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "3237:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "3210:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3219:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "3206:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3206:23:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3231:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "3202:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3202:32:1"
},
"nodeType": "YulIf",
"src": "3199:119:1"
},
{
"nodeType": "YulBlock",
"src": "3328:128:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "3343:15:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "3357:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "3347:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "3372:74:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3418:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "3429:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3414:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3414:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "3438:7:1"
}
],
"functionName": {
"name": "abi_decode_t_uint256_fromMemory",
"nodeType": "YulIdentifier",
"src": "3382:31:1"
},
"nodeType": "YulFunctionCall",
"src": "3382:64:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "3372:6:1"
}
]
}
]
},
{
"nodeType": "YulBlock",
"src": "3466:292:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "3481:39:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3505:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3516:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3501:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3501:18:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "3495:5:1"
},
"nodeType": "YulFunctionCall",
"src": "3495:25:1"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "3485:6:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "3567:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulIdentifier",
"src": "3569:77:1"
},
"nodeType": "YulFunctionCall",
"src": "3569:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "3569:79:1"
}
]
},
"condition": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "3539:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3547:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "3536:2:1"
},
"nodeType": "YulFunctionCall",
"src": "3536:30:1"
},
"nodeType": "YulIf",
"src": "3533:117:1"
},
{
"nodeType": "YulAssignment",
"src": "3664:84:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "3720:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "3731:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3716:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3716:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "3740:7:1"
}
],
"functionName": {
"name": "abi_decode_t_string_memory_ptr_fromMemory",
"nodeType": "YulIdentifier",
"src": "3674:41:1"
},
"nodeType": "YulFunctionCall",
"src": "3674:74:1"
},
"variableNames": [
{
"name": "value1",
"nodeType": "YulIdentifier",
"src": "3664:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_uint256t_string_memory_ptr_fromMemory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "3151:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "3162:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "3174:6:1",
"type": ""
},
{
"name": "value1",
"nodeType": "YulTypedName",
"src": "3182:6:1",
"type": ""
}
],
"src": "3085:680:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3799:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3816:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3819:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3809:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3809:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "3809:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3913:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3916:4:1",
"type": "",
"value": "0x22"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3906:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3906:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "3906:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3937:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3940:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "3930:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3930:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "3930:15:1"
}
]
},
"name": "panic_error_0x22",
"nodeType": "YulFunctionDefinition",
"src": "3771:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4008:269:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4018:22:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "4032:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4038:1:1",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "4028:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4028:12:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4018:6:1"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "4049:38:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "4079:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4085:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "4075:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4075:12:1"
},
"variables": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulTypedName",
"src": "4053:18:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "4126:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "4140:27:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4154:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4162:4:1",
"type": "",
"value": "0x7f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "4150:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4150:17:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4140:6:1"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "4106:18:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "4099:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4099:26:1"
},
"nodeType": "YulIf",
"src": "4096:81:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4229:42:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x22",
"nodeType": "YulIdentifier",
"src": "4243:16:1"
},
"nodeType": "YulFunctionCall",
"src": "4243:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "4243:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "4193:18:1"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4216:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4224:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "4213:2:1"
},
"nodeType": "YulFunctionCall",
"src": "4213:14:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "4190:2:1"
},
"nodeType": "YulFunctionCall",
"src": "4190:38:1"
},
"nodeType": "YulIf",
"src": "4187:84:1"
}
]
},
"name": "extract_byte_array_length",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "3992:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "4001:6:1",
"type": ""
}
],
"src": "3957:320:1"
}
]
},
"contents": "{\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function validator_revert_t_uint256(value) {\n if iszero(eq(value, cleanup_t_uint256(value))) { revert(0, 0) }\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 revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() {\n revert(0, 0)\n }\n\n function revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae() {\n revert(0, 0)\n }\n\n function round_up_to_mul_of_32(value) -> result {\n result := and(add(value, 31), not(31))\n }\n\n function panic_error_0x41() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x41)\n revert(0, 0x24)\n }\n\n function finalize_allocation(memPtr, size) {\n let newFreePtr := add(memPtr, round_up_to_mul_of_32(size))\n // protect against overflow\n if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { panic_error_0x41() }\n mstore(64, newFreePtr)\n }\n\n function allocate_memory(size) -> memPtr {\n memPtr := allocate_unbounded()\n finalize_allocation(memPtr, size)\n }\n\n function array_allocation_size_t_string_memory_ptr(length) -> size {\n // Make sure we can allocate memory without overflow\n if gt(length, 0xffffffffffffffff) { panic_error_0x41() }\n\n size := round_up_to_mul_of_32(length)\n\n // add length slot\n size := add(size, 0x20)\n\n }\n\n function copy_memory_to_memory(src, dst, length) {\n let i := 0\n for { } lt(i, length) { i := add(i, 32) }\n {\n mstore(add(dst, i), mload(add(src, i)))\n }\n if gt(i, length)\n {\n // clear end\n mstore(add(dst, length), 0)\n }\n }\n\n function abi_decode_available_length_t_string_memory_ptr_fromMemory(src, length, end) -> array {\n array := allocate_memory(array_allocation_size_t_string_memory_ptr(length))\n mstore(array, length)\n let dst := add(array, 0x20)\n if gt(add(src, length), end) { revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae() }\n copy_memory_to_memory(src, dst, length)\n }\n\n // string\n function abi_decode_t_string_memory_ptr_fromMemory(offset, end) -> array {\n if iszero(slt(add(offset, 0x1f), end)) { revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() }\n let length := mload(offset)\n array := abi_decode_available_length_t_string_memory_ptr_fromMemory(add(offset, 0x20), length, end)\n }\n\n function abi_decode_tuple_t_uint256t_string_memory_ptr_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_uint256_fromMemory(add(headStart, offset), dataEnd)\n }\n\n {\n\n let offset := mload(add(headStart, 32))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value1 := abi_decode_t_string_memory_ptr_fromMemory(add(headStart, offset), dataEnd)\n }\n\n }\n\n function panic_error_0x22() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x22)\n revert(0, 0x24)\n }\n\n function extract_byte_array_length(data) -> length {\n length := div(data, 2)\n let outOfPlaceEncoding := and(data, 1)\n if iszero(outOfPlaceEncoding) {\n length := and(length, 0x7f)\n }\n\n if eq(outOfPlaceEncoding, lt(length, 32)) {\n panic_error_0x22()\n }\n }\n\n}\n",
"id": 1,
"language": "Yul",
"name": "#utility.yul"
}
],
"linkReferences": {},
"object": "60a06040523480156200001157600080fd5b5060405162000a6e38038062000a6e83398181016040528101906200003791906200031b565b8160008190555080600190805190602001906200005692919062000093565b503373ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff16815250505050620003e6565b828054620000a190620003b0565b90600052602060002090601f016020900481019282620000c5576000855562000111565b82601f10620000e057805160ff191683800117855562000111565b8280016001018555821562000111579182015b8281111562000110578251825591602001919060010190620000f3565b5b50905062000120919062000124565b5090565b5b808211156200013f57600081600090555060010162000125565b5090565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6200016c8162000157565b81146200017857600080fd5b50565b6000815190506200018c8162000161565b92915050565b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b620001e7826200019c565b810181811067ffffffffffffffff82111715620002095762000208620001ad565b5b80604052505050565b60006200021e62000143565b90506200022c8282620001dc565b919050565b600067ffffffffffffffff8211156200024f576200024e620001ad565b5b6200025a826200019c565b9050602081019050919050565b60005b83811015620002875780820151818401526020810190506200026a565b8381111562000297576000848401525b50505050565b6000620002b4620002ae8462000231565b62000212565b905082815260208101848484011115620002d357620002d262000197565b5b620002e084828562000267565b509392505050565b600082601f8301126200030057620002ff62000192565b5b8151620003128482602086016200029d565b91505092915050565b600080604083850312156200033557620003346200014d565b5b600062000345858286016200017b565b925050602083015167ffffffffffffffff81111562000369576200036862000152565b5b6200037785828601620002e8565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620003c957607f821691505b60208210811415620003e057620003df62000381565b5b50919050565b60805161066c6200040260003960006101d4015261066c6000f3fe608060405234801561001057600080fd5b50600436106100625760003560e01c8063516f279e146100675780635524107714610085578063827bfbdf146100a157806385be3e62146100bd5780638da5cb5b146100db578063a035b1fe146100f9575b600080fd5b61006f610117565b60405161007c9190610338565b60405180910390f35b61009f600480360381019061009a91906103a4565b6101a5565b005b6100bb60048036038101906100b69190610506565b6101af565b005b6100c56101c9565b6040516100d2919061055e565b60405180910390f35b6100e36101d2565b6040516100f091906105ba565b60405180910390f35b6101016101f6565b60405161010e919061055e565b60405180910390f35b6001805461012490610604565b80601f016020809104026020016040519081016040528092919081815260200182805461015090610604565b801561019d5780601f106101725761010080835404028352916020019161019d565b820191906000526020600020905b81548152906001019060200180831161018057829003601f168201915b505050505081565b8060008190555050565b80600190805190602001906101c59291906101fc565b5050565b60006064905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b60005481565b82805461020890610604565b90600052602060002090601f01602090048101928261022a5760008555610271565b82601f1061024357805160ff1916838001178555610271565b82800160010185558215610271579182015b82811115610270578251825591602001919060010190610255565b5b50905061027e9190610282565b5090565b5b8082111561029b576000816000905550600101610283565b5090565b600081519050919050565b600082825260208201905092915050565b60005b838110156102d95780820151818401526020810190506102be565b838111156102e8576000848401525b50505050565b6000601f19601f8301169050919050565b600061030a8261029f565b61031481856102aa565b93506103248185602086016102bb565b61032d816102ee565b840191505092915050565b6000602082019050818103600083015261035281846102ff565b905092915050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6103818161036e565b811461038c57600080fd5b50565b60008135905061039e81610378565b92915050565b6000602082840312156103ba576103b9610364565b5b60006103c88482850161038f565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610413826102ee565b810181811067ffffffffffffffff82111715610432576104316103db565b5b80604052505050565b600061044561035a565b9050610451828261040a565b919050565b600067ffffffffffffffff821115610471576104706103db565b5b61047a826102ee565b9050602081019050919050565b82818337600083830152505050565b60006104a96104a484610456565b61043b565b9050828152602081018484840111156104c5576104c46103d6565b5b6104d0848285610487565b509392505050565b600082601f8301126104ed576104ec6103d1565b5b81356104fd848260208601610496565b91505092915050565b60006020828403121561051c5761051b610364565b5b600082013567ffffffffffffffff81111561053a57610539610369565b5b610546848285016104d8565b91505092915050565b6105588161036e565b82525050565b6000602082019050610573600083018461054f565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006105a482610579565b9050919050565b6105b481610599565b82525050565b60006020820190506105cf60008301846105ab565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061061c57607f821691505b602082108114156106305761062f6105d5565b5b5091905056fea2646970667358221220255f9f74bb05bed386dda29b9beac2d9b4e32e9a3bc1fcf9db8fa2914204d33364736f6c634300080b0033",
"opcodes": "PUSH1 0xA0 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH3 0x11 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x40 MLOAD PUSH3 0xA6E CODESIZE SUB DUP1 PUSH3 0xA6E DUP4 CODECOPY DUP2 DUP2 ADD PUSH1 0x40 MSTORE DUP2 ADD SWAP1 PUSH3 0x37 SWAP2 SWAP1 PUSH3 0x31B JUMP JUMPDEST DUP2 PUSH1 0x0 DUP2 SWAP1 SSTORE POP DUP1 PUSH1 0x1 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH3 0x56 SWAP3 SWAP2 SWAP1 PUSH3 0x93 JUMP JUMPDEST POP CALLER PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND PUSH1 0x80 DUP2 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF AND DUP2 MSTORE POP POP POP POP PUSH3 0x3E6 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH3 0xA1 SWAP1 PUSH3 0x3B0 JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH3 0xC5 JUMPI PUSH1 0x0 DUP6 SSTORE PUSH3 0x111 JUMP JUMPDEST DUP3 PUSH1 0x1F LT PUSH3 0xE0 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH3 0x111 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH3 0x111 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH3 0x110 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH3 0xF3 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH3 0x120 SWAP2 SWAP1 PUSH3 0x124 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH3 0x13F JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH3 0x125 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH3 0x16C DUP2 PUSH3 0x157 JUMP JUMPDEST DUP2 EQ PUSH3 0x178 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD SWAP1 POP PUSH3 0x18C DUP2 PUSH3 0x161 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH3 0x1E7 DUP3 PUSH3 0x19C JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH3 0x209 JUMPI PUSH3 0x208 PUSH3 0x1AD JUMP JUMPDEST JUMPDEST DUP1 PUSH1 0x40 MSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH3 0x21E PUSH3 0x143 JUMP JUMPDEST SWAP1 POP PUSH3 0x22C DUP3 DUP3 PUSH3 0x1DC JUMP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH3 0x24F JUMPI PUSH3 0x24E PUSH3 0x1AD JUMP JUMPDEST JUMPDEST PUSH3 0x25A DUP3 PUSH3 0x19C JUMP JUMPDEST SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 JUMPDEST DUP4 DUP2 LT ISZERO PUSH3 0x287 JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH3 0x26A JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH3 0x297 JUMPI PUSH1 0x0 DUP5 DUP5 ADD MSTORE JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH3 0x2B4 PUSH3 0x2AE DUP5 PUSH3 0x231 JUMP JUMPDEST PUSH3 0x212 JUMP JUMPDEST SWAP1 POP DUP3 DUP2 MSTORE PUSH1 0x20 DUP2 ADD DUP5 DUP5 DUP5 ADD GT ISZERO PUSH3 0x2D3 JUMPI PUSH3 0x2D2 PUSH3 0x197 JUMP JUMPDEST JUMPDEST PUSH3 0x2E0 DUP5 DUP3 DUP6 PUSH3 0x267 JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH3 0x300 JUMPI PUSH3 0x2FF PUSH3 0x192 JUMP JUMPDEST JUMPDEST DUP2 MLOAD PUSH3 0x312 DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH3 0x29D JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 PUSH1 0x40 DUP4 DUP6 SUB SLT ISZERO PUSH3 0x335 JUMPI PUSH3 0x334 PUSH3 0x14D JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH3 0x345 DUP6 DUP3 DUP7 ADD PUSH3 0x17B JUMP JUMPDEST SWAP3 POP POP PUSH1 0x20 DUP4 ADD MLOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH3 0x369 JUMPI PUSH3 0x368 PUSH3 0x152 JUMP JUMPDEST JUMPDEST PUSH3 0x377 DUP6 DUP3 DUP7 ADD PUSH3 0x2E8 JUMP JUMPDEST SWAP2 POP POP SWAP3 POP SWAP3 SWAP1 POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP3 DIV SWAP1 POP PUSH1 0x1 DUP3 AND DUP1 PUSH3 0x3C9 JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 EQ ISZERO PUSH3 0x3E0 JUMPI PUSH3 0x3DF PUSH3 0x381 JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x80 MLOAD PUSH2 0x66C PUSH3 0x402 PUSH1 0x0 CODECOPY PUSH1 0x0 PUSH2 0x1D4 ADD MSTORE PUSH2 0x66C PUSH1 0x0 RETURN INVALID PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x62 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x516F279E EQ PUSH2 0x67 JUMPI DUP1 PUSH4 0x55241077 EQ PUSH2 0x85 JUMPI DUP1 PUSH4 0x827BFBDF EQ PUSH2 0xA1 JUMPI DUP1 PUSH4 0x85BE3E62 EQ PUSH2 0xBD JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0xDB JUMPI DUP1 PUSH4 0xA035B1FE EQ PUSH2 0xF9 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x6F PUSH2 0x117 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x7C SWAP2 SWAP1 PUSH2 0x338 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x9F PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x9A SWAP2 SWAP1 PUSH2 0x3A4 JUMP JUMPDEST PUSH2 0x1A5 JUMP JUMPDEST STOP JUMPDEST PUSH2 0xBB PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xB6 SWAP2 SWAP1 PUSH2 0x506 JUMP JUMPDEST PUSH2 0x1AF JUMP JUMPDEST STOP JUMPDEST PUSH2 0xC5 PUSH2 0x1C9 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xD2 SWAP2 SWAP1 PUSH2 0x55E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xE3 PUSH2 0x1D2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF0 SWAP2 SWAP1 PUSH2 0x5BA JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x101 PUSH2 0x1F6 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x10E SWAP2 SWAP1 PUSH2 0x55E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x1 DUP1 SLOAD PUSH2 0x124 SWAP1 PUSH2 0x604 JUMP JUMPDEST DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH2 0x150 SWAP1 PUSH2 0x604 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x19D JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x172 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x19D JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x180 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST DUP1 PUSH1 0x1 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x1C5 SWAP3 SWAP2 SWAP1 PUSH2 0x1FC JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x64 SWAP1 POP SWAP1 JUMP JUMPDEST PUSH32 0x0 DUP2 JUMP JUMPDEST PUSH1 0x0 SLOAD DUP2 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH2 0x208 SWAP1 PUSH2 0x604 JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH2 0x22A JUMPI PUSH1 0x0 DUP6 SSTORE PUSH2 0x271 JUMP JUMPDEST DUP3 PUSH1 0x1F LT PUSH2 0x243 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x271 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x271 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x270 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x255 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0x27E SWAP2 SWAP1 PUSH2 0x282 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x29B JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0x283 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD 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 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x2D9 JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x2BE JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x2E8 JUMPI PUSH1 0x0 DUP5 DUP5 ADD MSTORE JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x30A DUP3 PUSH2 0x29F JUMP JUMPDEST PUSH2 0x314 DUP2 DUP6 PUSH2 0x2AA JUMP JUMPDEST SWAP4 POP PUSH2 0x324 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0x2BB JUMP JUMPDEST PUSH2 0x32D DUP2 PUSH2 0x2EE JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x352 DUP2 DUP5 PUSH2 0x2FF JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x381 DUP2 PUSH2 0x36E JUMP JUMPDEST DUP2 EQ PUSH2 0x38C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x39E DUP2 PUSH2 0x378 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x3BA JUMPI PUSH2 0x3B9 PUSH2 0x364 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x3C8 DUP5 DUP3 DUP6 ADD PUSH2 0x38F JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH2 0x413 DUP3 PUSH2 0x2EE JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x432 JUMPI PUSH2 0x431 PUSH2 0x3DB JUMP JUMPDEST JUMPDEST DUP1 PUSH1 0x40 MSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x445 PUSH2 0x35A JUMP JUMPDEST SWAP1 POP PUSH2 0x451 DUP3 DUP3 PUSH2 0x40A JUMP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0x471 JUMPI PUSH2 0x470 PUSH2 0x3DB JUMP JUMPDEST JUMPDEST PUSH2 0x47A DUP3 PUSH2 0x2EE JUMP JUMPDEST SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST DUP3 DUP2 DUP4 CALLDATACOPY PUSH1 0x0 DUP4 DUP4 ADD MSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4A9 PUSH2 0x4A4 DUP5 PUSH2 0x456 JUMP JUMPDEST PUSH2 0x43B JUMP JUMPDEST SWAP1 POP DUP3 DUP2 MSTORE PUSH1 0x20 DUP2 ADD DUP5 DUP5 DUP5 ADD GT ISZERO PUSH2 0x4C5 JUMPI PUSH2 0x4C4 PUSH2 0x3D6 JUMP JUMPDEST JUMPDEST PUSH2 0x4D0 DUP5 DUP3 DUP6 PUSH2 0x487 JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x4ED JUMPI PUSH2 0x4EC PUSH2 0x3D1 JUMP JUMPDEST JUMPDEST DUP2 CALLDATALOAD PUSH2 0x4FD DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH2 0x496 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x51C JUMPI PUSH2 0x51B PUSH2 0x364 JUMP JUMPDEST JUMPDEST PUSH1 0x0 DUP3 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x53A JUMPI PUSH2 0x539 PUSH2 0x369 JUMP JUMPDEST JUMPDEST PUSH2 0x546 DUP5 DUP3 DUP6 ADD PUSH2 0x4D8 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x558 DUP2 PUSH2 0x36E JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x573 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x54F JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x5A4 DUP3 PUSH2 0x579 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x5B4 DUP2 PUSH2 0x599 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x5CF PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x5AB JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP3 DIV SWAP1 POP PUSH1 0x1 DUP3 AND DUP1 PUSH2 0x61C JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 EQ ISZERO PUSH2 0x630 JUMPI PUSH2 0x62F PUSH2 0x5D5 JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0x25 0x5F SWAP16 PUSH21 0xBB05BED386DDA29B9BEAC2D9B4E32E9A3BC1FCF9DB DUP16 LOG2 SWAP2 TIMESTAMP DIV 0xD3 CALLER PUSH5 0x736F6C6343 STOP ADDMOD SIGNEXTEND STOP CALLER ",
"sourceMap": "63:907:0:-:0;;;413:138;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;480:6;472:5;:14;;;;507:9;496:8;:20;;;;;;;;;;;;:::i;:::-;;534:10;526:18;;;;;;;;;;413:138;;63:907;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;7:75:1:-;40:6;73:2;67:9;57:19;;7:75;:::o;88:117::-;197:1;194;187:12;211:117;320:1;317;310:12;334:77;371:7;400:5;389:16;;334:77;;;:::o;417:122::-;490:24;508:5;490:24;:::i;:::-;483:5;480:35;470:63;;529:1;526;519:12;470:63;417:122;:::o;545:143::-;602:5;633:6;627:13;618:22;;649:33;676:5;649:33;:::i;:::-;545:143;;;;:::o;694:117::-;803:1;800;793:12;817:117;926:1;923;916:12;940:102;981:6;1032:2;1028:7;1023:2;1016:5;1012:14;1008:28;998:38;;940:102;;;:::o;1048:180::-;1096:77;1093:1;1086:88;1193:4;1190:1;1183:15;1217:4;1214:1;1207:15;1234:281;1317:27;1339:4;1317:27;:::i;:::-;1309:6;1305:40;1447:6;1435:10;1432:22;1411:18;1399:10;1396:34;1393:62;1390:88;;;1458:18;;:::i;:::-;1390:88;1498:10;1494:2;1487:22;1277:238;1234:281;;:::o;1521:129::-;1555:6;1582:20;;:::i;:::-;1572:30;;1611:33;1639:4;1631:6;1611:33;:::i;:::-;1521:129;;;:::o;1656:308::-;1718:4;1808:18;1800:6;1797:30;1794:56;;;1830:18;;:::i;:::-;1794:56;1868:29;1890:6;1868:29;:::i;:::-;1860:37;;1952:4;1946;1942:15;1934:23;;1656:308;;;:::o;1970:307::-;2038:1;2048:113;2062:6;2059:1;2056:13;2048:113;;;2147:1;2142:3;2138:11;2132:18;2128:1;2123:3;2119:11;2112:39;2084:2;2081:1;2077:10;2072:15;;2048:113;;;2179:6;2176:1;2173:13;2170:101;;;2259:1;2250:6;2245:3;2241:16;2234:27;2170:101;2019:258;1970:307;;;:::o;2283:421::-;2372:5;2397:66;2413:49;2455:6;2413:49;:::i;:::-;2397:66;:::i;:::-;2388:75;;2486:6;2479:5;2472:21;2524:4;2517:5;2513:16;2562:3;2553:6;2548:3;2544:16;2541:25;2538:112;;;2569:79;;:::i;:::-;2538:112;2659:39;2691:6;2686:3;2681;2659:39;:::i;:::-;2378:326;2283:421;;;;;:::o;2724:355::-;2791:5;2840:3;2833:4;2825:6;2821:17;2817:27;2807:122;;2848:79;;:::i;:::-;2807:122;2958:6;2952:13;2983:90;3069:3;3061:6;3054:4;3046:6;3042:17;2983:90;:::i;:::-;2974:99;;2797:282;2724:355;;;;:::o;3085:680::-;3174:6;3182;3231:2;3219:9;3210:7;3206:23;3202:32;3199:119;;;3237:79;;:::i;:::-;3199:119;3357:1;3382:64;3438:7;3429:6;3418:9;3414:22;3382:64;:::i;:::-;3372:74;;3328:128;3516:2;3505:9;3501:18;3495:25;3547:18;3539:6;3536:30;3533:117;;;3569:79;;:::i;:::-;3533:117;3674:74;3740:7;3731:6;3720:9;3716:22;3674:74;:::i;:::-;3664:84;;3466:292;3085:680;;;;;:::o;3771:180::-;3819:77;3816:1;3809:88;3916:4;3913:1;3906:15;3940:4;3937:1;3930:15;3957:320;4001:6;4038:1;4032:4;4028:12;4018:22;;4085:1;4079:4;4075:12;4106:18;4096:81;;4162:4;4154:6;4150:17;4140:27;;4096:81;4224:2;4216:6;4213:14;4193:18;4190:38;4187:84;;;4243:18;;:::i;:::-;4187:84;4008:269;3957:320;;;:::o;63:907:0:-;;;;;;;;;;;;;"
},
"deployedBytecode": {
"functionDebugData": {
"@getArea_59": {
"entryPoint": 457,
"id": 59,
"parameterSlots": 0,
"returnSlots": 1
},
"@location_5": {
"entryPoint": 279,
"id": 5,
"parameterSlots": 0,
"returnSlots": 0
},
"@owner_7": {
"entryPoint": 466,
"id": 7,
"parameterSlots": 0,
"returnSlots": 0
},
"@price_3": {
"entryPoint": 502,
"id": 3,
"parameterSlots": 0,
"returnSlots": 0
},
"@setLocation_41": {
"entryPoint": 431,
"id": 41,
"parameterSlots": 1,
"returnSlots": 0
},
"@setValue_51": {
"entryPoint": 421,
"id": 51,
"parameterSlots": 1,
"returnSlots": 0
},
"abi_decode_available_length_t_string_memory_ptr": {
"entryPoint": 1174,
"id": null,
"parameterSlots": 3,
"returnSlots": 1
},
"abi_decode_t_string_memory_ptr": {
"entryPoint": 1240,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_t_uint256": {
"entryPoint": 911,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_string_memory_ptr": {
"entryPoint": 1286,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_decode_tuple_t_uint256": {
"entryPoint": 932,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_address_to_t_address_fromStack": {
"entryPoint": 1451,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack": {
"entryPoint": 767,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_t_uint256_to_t_uint256_fromStack": {
"entryPoint": 1359,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"abi_encode_tuple_t_address__to_t_address__fromStack_reversed": {
"entryPoint": 1466,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed": {
"entryPoint": 824,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed": {
"entryPoint": 1374,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"allocate_memory": {
"entryPoint": 1083,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"allocate_unbounded": {
"entryPoint": 858,
"id": null,
"parameterSlots": 0,
"returnSlots": 1
},
"array_allocation_size_t_string_memory_ptr": {
"entryPoint": 1110,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_length_t_string_memory_ptr": {
"entryPoint": 671,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"array_storeLengthForEncoding_t_string_memory_ptr_fromStack": {
"entryPoint": 682,
"id": null,
"parameterSlots": 2,
"returnSlots": 1
},
"cleanup_t_address": {
"entryPoint": 1433,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint160": {
"entryPoint": 1401,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"cleanup_t_uint256": {
"entryPoint": 878,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"copy_calldata_to_memory": {
"entryPoint": 1159,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"copy_memory_to_memory": {
"entryPoint": 699,
"id": null,
"parameterSlots": 3,
"returnSlots": 0
},
"extract_byte_array_length": {
"entryPoint": 1540,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"finalize_allocation": {
"entryPoint": 1034,
"id": null,
"parameterSlots": 2,
"returnSlots": 0
},
"panic_error_0x22": {
"entryPoint": 1493,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"panic_error_0x41": {
"entryPoint": 987,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d": {
"entryPoint": 977,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae": {
"entryPoint": 982,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db": {
"entryPoint": 873,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b": {
"entryPoint": 868,
"id": null,
"parameterSlots": 0,
"returnSlots": 0
},
"round_up_to_mul_of_32": {
"entryPoint": 750,
"id": null,
"parameterSlots": 1,
"returnSlots": 1
},
"validator_revert_t_uint256": {
"entryPoint": 888,
"id": null,
"parameterSlots": 1,
"returnSlots": 0
}
},
"generatedSources": [
{
"ast": {
"nodeType": "YulBlock",
"src": "0:6483:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "66:40:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "77:22:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "93:5:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "87:5:1"
},
"nodeType": "YulFunctionCall",
"src": "87:12:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "77:6:1"
}
]
}
]
},
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "49:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "59:6:1",
"type": ""
}
],
"src": "7:99:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "208:73:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "225:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "230:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "218:6:1"
},
"nodeType": "YulFunctionCall",
"src": "218:19:1"
},
"nodeType": "YulExpressionStatement",
"src": "218:19:1"
},
{
"nodeType": "YulAssignment",
"src": "246:29:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "265:3:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "270:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "261:3:1"
},
"nodeType": "YulFunctionCall",
"src": "261:14:1"
},
"variableNames": [
{
"name": "updated_pos",
"nodeType": "YulIdentifier",
"src": "246:11:1"
}
]
}
]
},
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "180:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "185:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "updated_pos",
"nodeType": "YulTypedName",
"src": "196:11:1",
"type": ""
}
],
"src": "112:169:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "336:258:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "346:10:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "355:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "i",
"nodeType": "YulTypedName",
"src": "350:1:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "415:63:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "440:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "445:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "436:3:1"
},
"nodeType": "YulFunctionCall",
"src": "436:11:1"
},
{
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "459:3:1"
},
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "464:1:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "455:3:1"
},
"nodeType": "YulFunctionCall",
"src": "455:11:1"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "449:5:1"
},
"nodeType": "YulFunctionCall",
"src": "449:18:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "429:6:1"
},
"nodeType": "YulFunctionCall",
"src": "429:39:1"
},
"nodeType": "YulExpressionStatement",
"src": "429:39:1"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "376:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "379:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "373:2:1"
},
"nodeType": "YulFunctionCall",
"src": "373:13:1"
},
"nodeType": "YulForLoop",
"post": {
"nodeType": "YulBlock",
"src": "387:19:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "389:15:1",
"value": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "398:1:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "401:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "394:3:1"
},
"nodeType": "YulFunctionCall",
"src": "394:10:1"
},
"variableNames": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "389:1:1"
}
]
}
]
},
"pre": {
"nodeType": "YulBlock",
"src": "369:3:1",
"statements": []
},
"src": "365:113:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "512:76:1",
"statements": [
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "562:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "567:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "558:3:1"
},
"nodeType": "YulFunctionCall",
"src": "558:16:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "576:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "551:6:1"
},
"nodeType": "YulFunctionCall",
"src": "551:27:1"
},
"nodeType": "YulExpressionStatement",
"src": "551:27:1"
}
]
},
"condition": {
"arguments": [
{
"name": "i",
"nodeType": "YulIdentifier",
"src": "493:1:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "496:6:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "490:2:1"
},
"nodeType": "YulFunctionCall",
"src": "490:13:1"
},
"nodeType": "YulIf",
"src": "487:101:1"
}
]
},
"name": "copy_memory_to_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "318:3:1",
"type": ""
},
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "323:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "328:6:1",
"type": ""
}
],
"src": "287:307:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "648:54:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "658:38:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "676:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "683:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "672:3:1"
},
"nodeType": "YulFunctionCall",
"src": "672:14:1"
},
{
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "692:2:1",
"type": "",
"value": "31"
}
],
"functionName": {
"name": "not",
"nodeType": "YulIdentifier",
"src": "688:3:1"
},
"nodeType": "YulFunctionCall",
"src": "688:7:1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "668:3:1"
},
"nodeType": "YulFunctionCall",
"src": "668:28:1"
},
"variableNames": [
{
"name": "result",
"nodeType": "YulIdentifier",
"src": "658:6:1"
}
]
}
]
},
"name": "round_up_to_mul_of_32",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "631:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "result",
"nodeType": "YulTypedName",
"src": "641:6:1",
"type": ""
}
],
"src": "600:102:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "800:272:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "810:53:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "857:5:1"
}
],
"functionName": {
"name": "array_length_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "824:32:1"
},
"nodeType": "YulFunctionCall",
"src": "824:39:1"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "814:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "872:78:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "938:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "943:6:1"
}
],
"functionName": {
"name": "array_storeLengthForEncoding_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "879:58:1"
},
"nodeType": "YulFunctionCall",
"src": "879:71:1"
},
"variableNames": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "872:3:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "985:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "992:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "981:3:1"
},
"nodeType": "YulFunctionCall",
"src": "981:16:1"
},
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "999:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1004:6:1"
}
],
"functionName": {
"name": "copy_memory_to_memory",
"nodeType": "YulIdentifier",
"src": "959:21:1"
},
"nodeType": "YulFunctionCall",
"src": "959:52:1"
},
"nodeType": "YulExpressionStatement",
"src": "959:52:1"
},
{
"nodeType": "YulAssignment",
"src": "1020:46:1",
"value": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "1031:3:1"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "1058:6:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "1036:21:1"
},
"nodeType": "YulFunctionCall",
"src": "1036:29:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1027:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1027:39:1"
},
"variableNames": [
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "1020:3:1"
}
]
}
]
},
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "781:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "788:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "end",
"nodeType": "YulTypedName",
"src": "796:3:1",
"type": ""
}
],
"src": "708:364:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1196:195:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1206:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1218:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1229:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1214:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1214:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1206:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1253:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1264:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "1249:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1249:17:1"
},
{
"arguments": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1272:4:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "1278:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "1268:3:1"
},
"nodeType": "YulFunctionCall",
"src": "1268:20:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "1242:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1242:47:1"
},
"nodeType": "YulExpressionStatement",
"src": "1242:47:1"
},
{
"nodeType": "YulAssignment",
"src": "1298:86:1",
"value": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "1370:6:1"
},
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1379:4:1"
}
],
"functionName": {
"name": "abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack",
"nodeType": "YulIdentifier",
"src": "1306:63:1"
},
"nodeType": "YulFunctionCall",
"src": "1306:78:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "1298:4:1"
}
]
}
]
},
"name": "abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "1168:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "1180:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "1191:4:1",
"type": ""
}
],
"src": "1078:313:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1437:35:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1447:19:1",
"value": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1463:2:1",
"type": "",
"value": "64"
}
],
"functionName": {
"name": "mload",
"nodeType": "YulIdentifier",
"src": "1457:5:1"
},
"nodeType": "YulFunctionCall",
"src": "1457:9:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "1447:6:1"
}
]
}
]
},
"name": "allocate_unbounded",
"nodeType": "YulFunctionDefinition",
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "1430:6:1",
"type": ""
}
],
"src": "1397:75:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1567:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1584:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1587:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1577:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1577:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "1577:12:1"
}
]
},
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulFunctionDefinition",
"src": "1478:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1690:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1707:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1710:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1700:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1700:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "1700:12:1"
}
]
},
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulFunctionDefinition",
"src": "1601:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1769:32:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1779:16:1",
"value": {
"name": "value",
"nodeType": "YulIdentifier",
"src": "1790:5:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "1779:7:1"
}
]
}
]
},
"name": "cleanup_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1751:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "1761:7:1",
"type": ""
}
],
"src": "1724:77:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1850:79:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "1907:16:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1916:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "1919:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "1909:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1909:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "1909:12:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1873:5:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1898:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "1880:17:1"
},
"nodeType": "YulFunctionCall",
"src": "1880:24:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "1870:2:1"
},
"nodeType": "YulFunctionCall",
"src": "1870:35:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "1863:6:1"
},
"nodeType": "YulFunctionCall",
"src": "1863:43:1"
},
"nodeType": "YulIf",
"src": "1860:63:1"
}
]
},
"name": "validator_revert_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1843:5:1",
"type": ""
}
],
"src": "1807:122:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "1987:87:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "1997:29:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2019:6:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "2006:12:1"
},
"nodeType": "YulFunctionCall",
"src": "2006:20:1"
},
"variableNames": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "1997:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "2062:5:1"
}
],
"functionName": {
"name": "validator_revert_t_uint256",
"nodeType": "YulIdentifier",
"src": "2035:26:1"
},
"nodeType": "YulFunctionCall",
"src": "2035:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "2035:33:1"
}
]
},
"name": "abi_decode_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "1965:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "1973:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "1981:5:1",
"type": ""
}
],
"src": "1935:139:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2146:263:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "2192:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulIdentifier",
"src": "2194:77:1"
},
"nodeType": "YulFunctionCall",
"src": "2194:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "2194:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "2167:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2176:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "2163:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2163:23:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2188:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "2159:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2159:32:1"
},
"nodeType": "YulIf",
"src": "2156:119:1"
},
{
"nodeType": "YulBlock",
"src": "2285:117:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2300:15:1",
"value": {
"kind": "number",
"nodeType": "YulLiteral",
"src": "2314:1:1",
"type": "",
"value": "0"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "2304:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "2329:63:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "2364:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "2375:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2360:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2360:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "2384:7:1"
}
],
"functionName": {
"name": "abi_decode_t_uint256",
"nodeType": "YulIdentifier",
"src": "2339:20:1"
},
"nodeType": "YulFunctionCall",
"src": "2339:53:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "2329:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_uint256",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "2116:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "2127:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "2139:6:1",
"type": ""
}
],
"src": "2080:329:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2504:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2521:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2524:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "2514:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2514:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "2514:12:1"
}
]
},
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nodeType": "YulFunctionDefinition",
"src": "2415:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2627:28:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2644:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2647:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "2637:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2637:12:1"
},
"nodeType": "YulExpressionStatement",
"src": "2637:12:1"
}
]
},
"name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae",
"nodeType": "YulFunctionDefinition",
"src": "2538:117:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2689:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2706:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2709:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2699:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2699:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "2699:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2803:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2806:4:1",
"type": "",
"value": "0x41"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "2796:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2796:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "2796:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2827:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "2830:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "2820:6:1"
},
"nodeType": "YulFunctionCall",
"src": "2820:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "2820:15:1"
}
]
},
"name": "panic_error_0x41",
"nodeType": "YulFunctionDefinition",
"src": "2661:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "2890:238:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "2900:58:1",
"value": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "2922:6:1"
},
{
"arguments": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "2952:4:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "2930:21:1"
},
"nodeType": "YulFunctionCall",
"src": "2930:27:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "2918:3:1"
},
"nodeType": "YulFunctionCall",
"src": "2918:40:1"
},
"variables": [
{
"name": "newFreePtr",
"nodeType": "YulTypedName",
"src": "2904:10:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "3069:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "3071:16:1"
},
"nodeType": "YulFunctionCall",
"src": "3071:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "3071:18:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "3012:10:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3024:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "3009:2:1"
},
"nodeType": "YulFunctionCall",
"src": "3009:34:1"
},
{
"arguments": [
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "3048:10:1"
},
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "3060:6:1"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "3045:2:1"
},
"nodeType": "YulFunctionCall",
"src": "3045:22:1"
}
],
"functionName": {
"name": "or",
"nodeType": "YulIdentifier",
"src": "3006:2:1"
},
"nodeType": "YulFunctionCall",
"src": "3006:62:1"
},
"nodeType": "YulIf",
"src": "3003:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3107:2:1",
"type": "",
"value": "64"
},
{
"name": "newFreePtr",
"nodeType": "YulIdentifier",
"src": "3111:10:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3100:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3100:22:1"
},
"nodeType": "YulExpressionStatement",
"src": "3100:22:1"
}
]
},
"name": "finalize_allocation",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "2876:6:1",
"type": ""
},
{
"name": "size",
"nodeType": "YulTypedName",
"src": "2884:4:1",
"type": ""
}
],
"src": "2847:281:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3175:88:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3185:30:1",
"value": {
"arguments": [],
"functionName": {
"name": "allocate_unbounded",
"nodeType": "YulIdentifier",
"src": "3195:18:1"
},
"nodeType": "YulFunctionCall",
"src": "3195:20:1"
},
"variableNames": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "3185:6:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "memPtr",
"nodeType": "YulIdentifier",
"src": "3244:6:1"
},
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "3252:4:1"
}
],
"functionName": {
"name": "finalize_allocation",
"nodeType": "YulIdentifier",
"src": "3224:19:1"
},
"nodeType": "YulFunctionCall",
"src": "3224:33:1"
},
"nodeType": "YulExpressionStatement",
"src": "3224:33:1"
}
]
},
"name": "allocate_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "size",
"nodeType": "YulTypedName",
"src": "3159:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "memPtr",
"nodeType": "YulTypedName",
"src": "3168:6:1",
"type": ""
}
],
"src": "3134:129:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3336:241:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "3441:22:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x41",
"nodeType": "YulIdentifier",
"src": "3443:16:1"
},
"nodeType": "YulFunctionCall",
"src": "3443:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "3443:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3413:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3421:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "3410:2:1"
},
"nodeType": "YulFunctionCall",
"src": "3410:30:1"
},
"nodeType": "YulIf",
"src": "3407:56:1"
},
{
"nodeType": "YulAssignment",
"src": "3473:37:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3503:6:1"
}
],
"functionName": {
"name": "round_up_to_mul_of_32",
"nodeType": "YulIdentifier",
"src": "3481:21:1"
},
"nodeType": "YulFunctionCall",
"src": "3481:29:1"
},
"variableNames": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "3473:4:1"
}
]
},
{
"nodeType": "YulAssignment",
"src": "3547:23:1",
"value": {
"arguments": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "3559:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3565:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3555:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3555:15:1"
},
"variableNames": [
{
"name": "size",
"nodeType": "YulIdentifier",
"src": "3547:4:1"
}
]
}
]
},
"name": "array_allocation_size_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "3320:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "size",
"nodeType": "YulTypedName",
"src": "3331:4:1",
"type": ""
}
],
"src": "3269:308:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3634:103:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "3657:3:1"
},
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "3662:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3667:6:1"
}
],
"functionName": {
"name": "calldatacopy",
"nodeType": "YulIdentifier",
"src": "3644:12:1"
},
"nodeType": "YulFunctionCall",
"src": "3644:30:1"
},
"nodeType": "YulExpressionStatement",
"src": "3644:30:1"
},
{
"expression": {
"arguments": [
{
"arguments": [
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "3715:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3720:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3711:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3711:16:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3729:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3704:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3704:27:1"
},
"nodeType": "YulExpressionStatement",
"src": "3704:27:1"
}
]
},
"name": "copy_calldata_to_memory",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "3616:3:1",
"type": ""
},
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "3621:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "3626:6:1",
"type": ""
}
],
"src": "3583:154:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "3827:328:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "3837:75:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3904:6:1"
}
],
"functionName": {
"name": "array_allocation_size_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "3862:41:1"
},
"nodeType": "YulFunctionCall",
"src": "3862:49:1"
}
],
"functionName": {
"name": "allocate_memory",
"nodeType": "YulIdentifier",
"src": "3846:15:1"
},
"nodeType": "YulFunctionCall",
"src": "3846:66:1"
},
"variableNames": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "3837:5:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "3928:5:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "3935:6:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "3921:6:1"
},
"nodeType": "YulFunctionCall",
"src": "3921:21:1"
},
"nodeType": "YulExpressionStatement",
"src": "3921:21:1"
},
{
"nodeType": "YulVariableDeclaration",
"src": "3951:27:1",
"value": {
"arguments": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "3966:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "3973:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3962:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3962:16:1"
},
"variables": [
{
"name": "dst",
"nodeType": "YulTypedName",
"src": "3955:3:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "4016:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae",
"nodeType": "YulIdentifier",
"src": "4018:77:1"
},
"nodeType": "YulFunctionCall",
"src": "4018:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "4018:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "3997:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4002:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "3993:3:1"
},
"nodeType": "YulFunctionCall",
"src": "3993:16:1"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "4011:3:1"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "3990:2:1"
},
"nodeType": "YulFunctionCall",
"src": "3990:25:1"
},
"nodeType": "YulIf",
"src": "3987:112:1"
},
{
"expression": {
"arguments": [
{
"name": "src",
"nodeType": "YulIdentifier",
"src": "4132:3:1"
},
{
"name": "dst",
"nodeType": "YulIdentifier",
"src": "4137:3:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4142:6:1"
}
],
"functionName": {
"name": "copy_calldata_to_memory",
"nodeType": "YulIdentifier",
"src": "4108:23:1"
},
"nodeType": "YulFunctionCall",
"src": "4108:41:1"
},
"nodeType": "YulExpressionStatement",
"src": "4108:41:1"
}
]
},
"name": "abi_decode_available_length_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "src",
"nodeType": "YulTypedName",
"src": "3800:3:1",
"type": ""
},
{
"name": "length",
"nodeType": "YulTypedName",
"src": "3805:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "3813:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "array",
"nodeType": "YulTypedName",
"src": "3821:5:1",
"type": ""
}
],
"src": "3743:412:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4237:278:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "4286:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d",
"nodeType": "YulIdentifier",
"src": "4288:77:1"
},
"nodeType": "YulFunctionCall",
"src": "4288:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "4288:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "4265:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4273:4:1",
"type": "",
"value": "0x1f"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4261:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4261:17:1"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "4280:3:1"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "4257:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4257:27:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "4250:6:1"
},
"nodeType": "YulFunctionCall",
"src": "4250:35:1"
},
"nodeType": "YulIf",
"src": "4247:122:1"
},
{
"nodeType": "YulVariableDeclaration",
"src": "4378:34:1",
"value": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "4405:6:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "4392:12:1"
},
"nodeType": "YulFunctionCall",
"src": "4392:20:1"
},
"variables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "4382:6:1",
"type": ""
}
]
},
{
"nodeType": "YulAssignment",
"src": "4421:88:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "4482:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4490:4:1",
"type": "",
"value": "0x20"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4478:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4478:17:1"
},
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "4497:6:1"
},
{
"name": "end",
"nodeType": "YulIdentifier",
"src": "4505:3:1"
}
],
"functionName": {
"name": "abi_decode_available_length_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "4430:47:1"
},
"nodeType": "YulFunctionCall",
"src": "4430:79:1"
},
"variableNames": [
{
"name": "array",
"nodeType": "YulIdentifier",
"src": "4421:5:1"
}
]
}
]
},
"name": "abi_decode_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "4215:6:1",
"type": ""
},
{
"name": "end",
"nodeType": "YulTypedName",
"src": "4223:3:1",
"type": ""
}
],
"returnVariables": [
{
"name": "array",
"nodeType": "YulTypedName",
"src": "4231:5:1",
"type": ""
}
],
"src": "4175:340:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "4597:433:1",
"statements": [
{
"body": {
"nodeType": "YulBlock",
"src": "4643:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b",
"nodeType": "YulIdentifier",
"src": "4645:77:1"
},
"nodeType": "YulFunctionCall",
"src": "4645:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "4645:79:1"
}
]
},
"condition": {
"arguments": [
{
"arguments": [
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "4618:7:1"
},
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4627:9:1"
}
],
"functionName": {
"name": "sub",
"nodeType": "YulIdentifier",
"src": "4614:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4614:23:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4639:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "slt",
"nodeType": "YulIdentifier",
"src": "4610:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4610:32:1"
},
"nodeType": "YulIf",
"src": "4607:119:1"
},
{
"nodeType": "YulBlock",
"src": "4736:287:1",
"statements": [
{
"nodeType": "YulVariableDeclaration",
"src": "4751:45:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4782:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4793:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4778:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4778:17:1"
}
],
"functionName": {
"name": "calldataload",
"nodeType": "YulIdentifier",
"src": "4765:12:1"
},
"nodeType": "YulFunctionCall",
"src": "4765:31:1"
},
"variables": [
{
"name": "offset",
"nodeType": "YulTypedName",
"src": "4755:6:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "4843:83:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db",
"nodeType": "YulIdentifier",
"src": "4845:77:1"
},
"nodeType": "YulFunctionCall",
"src": "4845:79:1"
},
"nodeType": "YulExpressionStatement",
"src": "4845:79:1"
}
]
},
"condition": {
"arguments": [
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "4815:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "4823:18:1",
"type": "",
"value": "0xffffffffffffffff"
}
],
"functionName": {
"name": "gt",
"nodeType": "YulIdentifier",
"src": "4812:2:1"
},
"nodeType": "YulFunctionCall",
"src": "4812:30:1"
},
"nodeType": "YulIf",
"src": "4809:117:1"
},
{
"nodeType": "YulAssignment",
"src": "4940:73:1",
"value": {
"arguments": [
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "4985:9:1"
},
{
"name": "offset",
"nodeType": "YulIdentifier",
"src": "4996:6:1"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "4981:3:1"
},
"nodeType": "YulFunctionCall",
"src": "4981:22:1"
},
{
"name": "dataEnd",
"nodeType": "YulIdentifier",
"src": "5005:7:1"
}
],
"functionName": {
"name": "abi_decode_t_string_memory_ptr",
"nodeType": "YulIdentifier",
"src": "4950:30:1"
},
"nodeType": "YulFunctionCall",
"src": "4950:63:1"
},
"variableNames": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "4940:6:1"
}
]
}
]
}
]
},
"name": "abi_decode_tuple_t_string_memory_ptr",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "4567:9:1",
"type": ""
},
{
"name": "dataEnd",
"nodeType": "YulTypedName",
"src": "4578:7:1",
"type": ""
}
],
"returnVariables": [
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "4590:6:1",
"type": ""
}
],
"src": "4521:509:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5101:53:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "5118:3:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5141:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint256",
"nodeType": "YulIdentifier",
"src": "5123:17:1"
},
"nodeType": "YulFunctionCall",
"src": "5123:24:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5111:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5111:37:1"
},
"nodeType": "YulExpressionStatement",
"src": "5111:37:1"
}
]
},
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5089:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "5096:3:1",
"type": ""
}
],
"src": "5036:118:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5258:124:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5268:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "5280:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5291:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5276:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5276:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "5268:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "5348:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "5361:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5372:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5357:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5357:17:1"
}
],
"functionName": {
"name": "abi_encode_t_uint256_to_t_uint256_fromStack",
"nodeType": "YulIdentifier",
"src": "5304:43:1"
},
"nodeType": "YulFunctionCall",
"src": "5304:71:1"
},
"nodeType": "YulExpressionStatement",
"src": "5304:71:1"
}
]
},
"name": "abi_encode_tuple_t_uint256__to_t_uint256__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "5230:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "5242:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "5253:4:1",
"type": ""
}
],
"src": "5160:222:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5433:81:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5443:65:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5458:5:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5465:42:1",
"type": "",
"value": "0xffffffffffffffffffffffffffffffffffffffff"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "5454:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5454:54:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "5443:7:1"
}
]
}
]
},
"name": "cleanup_t_uint160",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5415:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "5425:7:1",
"type": ""
}
],
"src": "5388:126:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5565:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5575:35:1",
"value": {
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5604:5:1"
}
],
"functionName": {
"name": "cleanup_t_uint160",
"nodeType": "YulIdentifier",
"src": "5586:17:1"
},
"nodeType": "YulFunctionCall",
"src": "5586:24:1"
},
"variableNames": [
{
"name": "cleaned",
"nodeType": "YulIdentifier",
"src": "5575:7:1"
}
]
}
]
},
"name": "cleanup_t_address",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5547:5:1",
"type": ""
}
],
"returnVariables": [
{
"name": "cleaned",
"nodeType": "YulTypedName",
"src": "5557:7:1",
"type": ""
}
],
"src": "5520:96:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5687:53:1",
"statements": [
{
"expression": {
"arguments": [
{
"name": "pos",
"nodeType": "YulIdentifier",
"src": "5704:3:1"
},
{
"arguments": [
{
"name": "value",
"nodeType": "YulIdentifier",
"src": "5727:5:1"
}
],
"functionName": {
"name": "cleanup_t_address",
"nodeType": "YulIdentifier",
"src": "5709:17:1"
},
"nodeType": "YulFunctionCall",
"src": "5709:24:1"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "5697:6:1"
},
"nodeType": "YulFunctionCall",
"src": "5697:37:1"
},
"nodeType": "YulExpressionStatement",
"src": "5697:37:1"
}
]
},
"name": "abi_encode_t_address_to_t_address_fromStack",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "value",
"nodeType": "YulTypedName",
"src": "5675:5:1",
"type": ""
},
{
"name": "pos",
"nodeType": "YulTypedName",
"src": "5682:3:1",
"type": ""
}
],
"src": "5622:118:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "5844:124:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "5854:26:1",
"value": {
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "5866:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5877:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5862:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5862:18:1"
},
"variableNames": [
{
"name": "tail",
"nodeType": "YulIdentifier",
"src": "5854:4:1"
}
]
},
{
"expression": {
"arguments": [
{
"name": "value0",
"nodeType": "YulIdentifier",
"src": "5934:6:1"
},
{
"arguments": [
{
"name": "headStart",
"nodeType": "YulIdentifier",
"src": "5947:9:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "5958:1:1",
"type": "",
"value": "0"
}
],
"functionName": {
"name": "add",
"nodeType": "YulIdentifier",
"src": "5943:3:1"
},
"nodeType": "YulFunctionCall",
"src": "5943:17:1"
}
],
"functionName": {
"name": "abi_encode_t_address_to_t_address_fromStack",
"nodeType": "YulIdentifier",
"src": "5890:43:1"
},
"nodeType": "YulFunctionCall",
"src": "5890:71:1"
},
"nodeType": "YulExpressionStatement",
"src": "5890:71:1"
}
]
},
"name": "abi_encode_tuple_t_address__to_t_address__fromStack_reversed",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "headStart",
"nodeType": "YulTypedName",
"src": "5816:9:1",
"type": ""
},
{
"name": "value0",
"nodeType": "YulTypedName",
"src": "5828:6:1",
"type": ""
}
],
"returnVariables": [
{
"name": "tail",
"nodeType": "YulTypedName",
"src": "5839:4:1",
"type": ""
}
],
"src": "5746:222:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6002:152:1",
"statements": [
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6019:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6022:77:1",
"type": "",
"value": "35408467139433450592217433187231851964531694900788300625387963629091585785856"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6012:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6012:88:1"
},
"nodeType": "YulExpressionStatement",
"src": "6012:88:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6116:1:1",
"type": "",
"value": "4"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6119:4:1",
"type": "",
"value": "0x22"
}
],
"functionName": {
"name": "mstore",
"nodeType": "YulIdentifier",
"src": "6109:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6109:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6109:15:1"
},
{
"expression": {
"arguments": [
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6140:1:1",
"type": "",
"value": "0"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6143:4:1",
"type": "",
"value": "0x24"
}
],
"functionName": {
"name": "revert",
"nodeType": "YulIdentifier",
"src": "6133:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6133:15:1"
},
"nodeType": "YulExpressionStatement",
"src": "6133:15:1"
}
]
},
"name": "panic_error_0x22",
"nodeType": "YulFunctionDefinition",
"src": "5974:180:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6211:269:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "6221:22:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "6235:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6241:1:1",
"type": "",
"value": "2"
}
],
"functionName": {
"name": "div",
"nodeType": "YulIdentifier",
"src": "6231:3:1"
},
"nodeType": "YulFunctionCall",
"src": "6231:12:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "6221:6:1"
}
]
},
{
"nodeType": "YulVariableDeclaration",
"src": "6252:38:1",
"value": {
"arguments": [
{
"name": "data",
"nodeType": "YulIdentifier",
"src": "6282:4:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6288:1:1",
"type": "",
"value": "1"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "6278:3:1"
},
"nodeType": "YulFunctionCall",
"src": "6278:12:1"
},
"variables": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulTypedName",
"src": "6256:18:1",
"type": ""
}
]
},
{
"body": {
"nodeType": "YulBlock",
"src": "6329:51:1",
"statements": [
{
"nodeType": "YulAssignment",
"src": "6343:27:1",
"value": {
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "6357:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6365:4:1",
"type": "",
"value": "0x7f"
}
],
"functionName": {
"name": "and",
"nodeType": "YulIdentifier",
"src": "6353:3:1"
},
"nodeType": "YulFunctionCall",
"src": "6353:17:1"
},
"variableNames": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "6343:6:1"
}
]
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "6309:18:1"
}
],
"functionName": {
"name": "iszero",
"nodeType": "YulIdentifier",
"src": "6302:6:1"
},
"nodeType": "YulFunctionCall",
"src": "6302:26:1"
},
"nodeType": "YulIf",
"src": "6299:81:1"
},
{
"body": {
"nodeType": "YulBlock",
"src": "6432:42:1",
"statements": [
{
"expression": {
"arguments": [],
"functionName": {
"name": "panic_error_0x22",
"nodeType": "YulIdentifier",
"src": "6446:16:1"
},
"nodeType": "YulFunctionCall",
"src": "6446:18:1"
},
"nodeType": "YulExpressionStatement",
"src": "6446:18:1"
}
]
},
"condition": {
"arguments": [
{
"name": "outOfPlaceEncoding",
"nodeType": "YulIdentifier",
"src": "6396:18:1"
},
{
"arguments": [
{
"name": "length",
"nodeType": "YulIdentifier",
"src": "6419:6:1"
},
{
"kind": "number",
"nodeType": "YulLiteral",
"src": "6427:2:1",
"type": "",
"value": "32"
}
],
"functionName": {
"name": "lt",
"nodeType": "YulIdentifier",
"src": "6416:2:1"
},
"nodeType": "YulFunctionCall",
"src": "6416:14:1"
}
],
"functionName": {
"name": "eq",
"nodeType": "YulIdentifier",
"src": "6393:2:1"
},
"nodeType": "YulFunctionCall",
"src": "6393:38:1"
},
"nodeType": "YulIf",
"src": "6390:84:1"
}
]
},
"name": "extract_byte_array_length",
"nodeType": "YulFunctionDefinition",
"parameters": [
{
"name": "data",
"nodeType": "YulTypedName",
"src": "6195:4:1",
"type": ""
}
],
"returnVariables": [
{
"name": "length",
"nodeType": "YulTypedName",
"src": "6204:6:1",
"type": ""
}
],
"src": "6160:320:1"
}
]
},
"contents": "{\n\n function array_length_t_string_memory_ptr(value) -> length {\n\n length := mload(value)\n\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 copy_memory_to_memory(src, dst, length) {\n let i := 0\n for { } lt(i, length) { i := add(i, 32) }\n {\n mstore(add(dst, i), mload(add(src, i)))\n }\n if gt(i, length)\n {\n // clear end\n mstore(add(dst, length), 0)\n }\n }\n\n function round_up_to_mul_of_32(value) -> result {\n result := and(add(value, 31), not(31))\n }\n\n function abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value, pos) -> end {\n let length := array_length_t_string_memory_ptr(value)\n pos := array_storeLengthForEncoding_t_string_memory_ptr_fromStack(pos, length)\n copy_memory_to_memory(add(value, 0x20), pos, length)\n end := add(pos, round_up_to_mul_of_32(length))\n }\n\n function abi_encode_tuple_t_string_memory_ptr__to_t_string_memory_ptr__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n mstore(add(headStart, 0), sub(tail, headStart))\n tail := abi_encode_t_string_memory_ptr_to_t_string_memory_ptr_fromStack(value0, tail)\n\n }\n\n function allocate_unbounded() -> memPtr {\n memPtr := mload(64)\n }\n\n function revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() {\n revert(0, 0)\n }\n\n function revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() {\n revert(0, 0)\n }\n\n function cleanup_t_uint256(value) -> cleaned {\n cleaned := value\n }\n\n function validator_revert_t_uint256(value) {\n if iszero(eq(value, cleanup_t_uint256(value))) { revert(0, 0) }\n }\n\n function abi_decode_t_uint256(offset, end) -> value {\n value := calldataload(offset)\n validator_revert_t_uint256(value)\n }\n\n function abi_decode_tuple_t_uint256(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(add(headStart, offset), dataEnd)\n }\n\n }\n\n function revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() {\n revert(0, 0)\n }\n\n function revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae() {\n revert(0, 0)\n }\n\n function panic_error_0x41() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x41)\n revert(0, 0x24)\n }\n\n function finalize_allocation(memPtr, size) {\n let newFreePtr := add(memPtr, round_up_to_mul_of_32(size))\n // protect against overflow\n if or(gt(newFreePtr, 0xffffffffffffffff), lt(newFreePtr, memPtr)) { panic_error_0x41() }\n mstore(64, newFreePtr)\n }\n\n function allocate_memory(size) -> memPtr {\n memPtr := allocate_unbounded()\n finalize_allocation(memPtr, size)\n }\n\n function array_allocation_size_t_string_memory_ptr(length) -> size {\n // Make sure we can allocate memory without overflow\n if gt(length, 0xffffffffffffffff) { panic_error_0x41() }\n\n size := round_up_to_mul_of_32(length)\n\n // add length slot\n size := add(size, 0x20)\n\n }\n\n function copy_calldata_to_memory(src, dst, length) {\n calldatacopy(dst, src, length)\n // clear end\n mstore(add(dst, length), 0)\n }\n\n function abi_decode_available_length_t_string_memory_ptr(src, length, end) -> array {\n array := allocate_memory(array_allocation_size_t_string_memory_ptr(length))\n mstore(array, length)\n let dst := add(array, 0x20)\n if gt(add(src, length), end) { revert_error_987264b3b1d58a9c7f8255e93e81c77d86d6299019c33110a076957a3e06e2ae() }\n copy_calldata_to_memory(src, dst, length)\n }\n\n // string\n function abi_decode_t_string_memory_ptr(offset, end) -> array {\n if iszero(slt(add(offset, 0x1f), end)) { revert_error_1b9f4a0a5773e33b91aa01db23bf8c55fce1411167c872835e7fa00a4f17d46d() }\n let length := calldataload(offset)\n array := abi_decode_available_length_t_string_memory_ptr(add(offset, 0x20), length, end)\n }\n\n function abi_decode_tuple_t_string_memory_ptr(headStart, dataEnd) -> value0 {\n if slt(sub(dataEnd, headStart), 32) { revert_error_dbdddcbe895c83990c08b3492a0e83918d802a52331272ac6fdb6a7c4aea3b1b() }\n\n {\n\n let offset := calldataload(add(headStart, 0))\n if gt(offset, 0xffffffffffffffff) { revert_error_c1322bf8034eace5e0b5c7295db60986aa89aae5e0ea0873e4689e076861a5db() }\n\n value0 := abi_decode_t_string_memory_ptr(add(headStart, offset), dataEnd)\n }\n\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_uint256__to_t_uint256__fromStack_reversed(headStart , value0) -> tail {\n tail := add(headStart, 32)\n\n abi_encode_t_uint256_to_t_uint256_fromStack(value0, add(headStart, 0))\n\n }\n\n function cleanup_t_uint160(value) -> cleaned {\n cleaned := and(value, 0xffffffffffffffffffffffffffffffffffffffff)\n }\n\n function cleanup_t_address(value) -> cleaned {\n cleaned := cleanup_t_uint160(value)\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_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 panic_error_0x22() {\n mstore(0, 35408467139433450592217433187231851964531694900788300625387963629091585785856)\n mstore(4, 0x22)\n revert(0, 0x24)\n }\n\n function extract_byte_array_length(data) -> length {\n length := div(data, 2)\n let outOfPlaceEncoding := and(data, 1)\n if iszero(outOfPlaceEncoding) {\n length := and(length, 0x7f)\n }\n\n if eq(outOfPlaceEncoding, lt(length, 32)) {\n panic_error_0x22()\n }\n }\n\n}\n",
"id": 1,
"language": "Yul",
"name": "#utility.yul"
}
],
"immutableReferences": {
"7": [
{
"length": 32,
"start": 468
}
]
},
"linkReferences": {},
"object": "608060405234801561001057600080fd5b50600436106100625760003560e01c8063516f279e146100675780635524107714610085578063827bfbdf146100a157806385be3e62146100bd5780638da5cb5b146100db578063a035b1fe146100f9575b600080fd5b61006f610117565b60405161007c9190610338565b60405180910390f35b61009f600480360381019061009a91906103a4565b6101a5565b005b6100bb60048036038101906100b69190610506565b6101af565b005b6100c56101c9565b6040516100d2919061055e565b60405180910390f35b6100e36101d2565b6040516100f091906105ba565b60405180910390f35b6101016101f6565b60405161010e919061055e565b60405180910390f35b6001805461012490610604565b80601f016020809104026020016040519081016040528092919081815260200182805461015090610604565b801561019d5780601f106101725761010080835404028352916020019161019d565b820191906000526020600020905b81548152906001019060200180831161018057829003601f168201915b505050505081565b8060008190555050565b80600190805190602001906101c59291906101fc565b5050565b60006064905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b60005481565b82805461020890610604565b90600052602060002090601f01602090048101928261022a5760008555610271565b82601f1061024357805160ff1916838001178555610271565b82800160010185558215610271579182015b82811115610270578251825591602001919060010190610255565b5b50905061027e9190610282565b5090565b5b8082111561029b576000816000905550600101610283565b5090565b600081519050919050565b600082825260208201905092915050565b60005b838110156102d95780820151818401526020810190506102be565b838111156102e8576000848401525b50505050565b6000601f19601f8301169050919050565b600061030a8261029f565b61031481856102aa565b93506103248185602086016102bb565b61032d816102ee565b840191505092915050565b6000602082019050818103600083015261035281846102ff565b905092915050565b6000604051905090565b600080fd5b600080fd5b6000819050919050565b6103818161036e565b811461038c57600080fd5b50565b60008135905061039e81610378565b92915050565b6000602082840312156103ba576103b9610364565b5b60006103c88482850161038f565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b610413826102ee565b810181811067ffffffffffffffff82111715610432576104316103db565b5b80604052505050565b600061044561035a565b9050610451828261040a565b919050565b600067ffffffffffffffff821115610471576104706103db565b5b61047a826102ee565b9050602081019050919050565b82818337600083830152505050565b60006104a96104a484610456565b61043b565b9050828152602081018484840111156104c5576104c46103d6565b5b6104d0848285610487565b509392505050565b600082601f8301126104ed576104ec6103d1565b5b81356104fd848260208601610496565b91505092915050565b60006020828403121561051c5761051b610364565b5b600082013567ffffffffffffffff81111561053a57610539610369565b5b610546848285016104d8565b91505092915050565b6105588161036e565b82525050565b6000602082019050610573600083018461054f565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006105a482610579565b9050919050565b6105b481610599565b82525050565b60006020820190506105cf60008301846105ab565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061061c57607f821691505b602082108114156106305761062f6105d5565b5b5091905056fea2646970667358221220255f9f74bb05bed386dda29b9beac2d9b4e32e9a3bc1fcf9db8fa2914204d33364736f6c634300080b0033",
"opcodes": "PUSH1 0x80 PUSH1 0x40 MSTORE CALLVALUE DUP1 ISZERO PUSH2 0x10 JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP PUSH1 0x4 CALLDATASIZE LT PUSH2 0x62 JUMPI PUSH1 0x0 CALLDATALOAD PUSH1 0xE0 SHR DUP1 PUSH4 0x516F279E EQ PUSH2 0x67 JUMPI DUP1 PUSH4 0x55241077 EQ PUSH2 0x85 JUMPI DUP1 PUSH4 0x827BFBDF EQ PUSH2 0xA1 JUMPI DUP1 PUSH4 0x85BE3E62 EQ PUSH2 0xBD JUMPI DUP1 PUSH4 0x8DA5CB5B EQ PUSH2 0xDB JUMPI DUP1 PUSH4 0xA035B1FE EQ PUSH2 0xF9 JUMPI JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH2 0x6F PUSH2 0x117 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x7C SWAP2 SWAP1 PUSH2 0x338 JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x9F PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0x9A SWAP2 SWAP1 PUSH2 0x3A4 JUMP JUMPDEST PUSH2 0x1A5 JUMP JUMPDEST STOP JUMPDEST PUSH2 0xBB PUSH1 0x4 DUP1 CALLDATASIZE SUB DUP2 ADD SWAP1 PUSH2 0xB6 SWAP2 SWAP1 PUSH2 0x506 JUMP JUMPDEST PUSH2 0x1AF JUMP JUMPDEST STOP JUMPDEST PUSH2 0xC5 PUSH2 0x1C9 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xD2 SWAP2 SWAP1 PUSH2 0x55E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0xE3 PUSH2 0x1D2 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0xF0 SWAP2 SWAP1 PUSH2 0x5BA JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH2 0x101 PUSH2 0x1F6 JUMP JUMPDEST PUSH1 0x40 MLOAD PUSH2 0x10E SWAP2 SWAP1 PUSH2 0x55E JUMP JUMPDEST PUSH1 0x40 MLOAD DUP1 SWAP2 SUB SWAP1 RETURN JUMPDEST PUSH1 0x1 DUP1 SLOAD PUSH2 0x124 SWAP1 PUSH2 0x604 JUMP JUMPDEST DUP1 PUSH1 0x1F ADD PUSH1 0x20 DUP1 SWAP2 DIV MUL PUSH1 0x20 ADD PUSH1 0x40 MLOAD SWAP1 DUP2 ADD PUSH1 0x40 MSTORE DUP1 SWAP3 SWAP2 SWAP1 DUP2 DUP2 MSTORE PUSH1 0x20 ADD DUP3 DUP1 SLOAD PUSH2 0x150 SWAP1 PUSH2 0x604 JUMP JUMPDEST DUP1 ISZERO PUSH2 0x19D JUMPI DUP1 PUSH1 0x1F LT PUSH2 0x172 JUMPI PUSH2 0x100 DUP1 DUP4 SLOAD DIV MUL DUP4 MSTORE SWAP2 PUSH1 0x20 ADD SWAP2 PUSH2 0x19D JUMP JUMPDEST DUP3 ADD SWAP2 SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 JUMPDEST DUP2 SLOAD DUP2 MSTORE SWAP1 PUSH1 0x1 ADD SWAP1 PUSH1 0x20 ADD DUP1 DUP4 GT PUSH2 0x180 JUMPI DUP3 SWAP1 SUB PUSH1 0x1F AND DUP3 ADD SWAP2 JUMPDEST POP POP POP POP POP DUP2 JUMP JUMPDEST DUP1 PUSH1 0x0 DUP2 SWAP1 SSTORE POP POP JUMP JUMPDEST DUP1 PUSH1 0x1 SWAP1 DUP1 MLOAD SWAP1 PUSH1 0x20 ADD SWAP1 PUSH2 0x1C5 SWAP3 SWAP2 SWAP1 PUSH2 0x1FC JUMP JUMPDEST POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x64 SWAP1 POP SWAP1 JUMP JUMPDEST PUSH32 0x0 DUP2 JUMP JUMPDEST PUSH1 0x0 SLOAD DUP2 JUMP JUMPDEST DUP3 DUP1 SLOAD PUSH2 0x208 SWAP1 PUSH2 0x604 JUMP JUMPDEST SWAP1 PUSH1 0x0 MSTORE PUSH1 0x20 PUSH1 0x0 KECCAK256 SWAP1 PUSH1 0x1F ADD PUSH1 0x20 SWAP1 DIV DUP2 ADD SWAP3 DUP3 PUSH2 0x22A JUMPI PUSH1 0x0 DUP6 SSTORE PUSH2 0x271 JUMP JUMPDEST DUP3 PUSH1 0x1F LT PUSH2 0x243 JUMPI DUP1 MLOAD PUSH1 0xFF NOT AND DUP4 DUP1 ADD OR DUP6 SSTORE PUSH2 0x271 JUMP JUMPDEST DUP3 DUP1 ADD PUSH1 0x1 ADD DUP6 SSTORE DUP3 ISZERO PUSH2 0x271 JUMPI SWAP2 DUP3 ADD JUMPDEST DUP3 DUP2 GT ISZERO PUSH2 0x270 JUMPI DUP3 MLOAD DUP3 SSTORE SWAP2 PUSH1 0x20 ADD SWAP2 SWAP1 PUSH1 0x1 ADD SWAP1 PUSH2 0x255 JUMP JUMPDEST JUMPDEST POP SWAP1 POP PUSH2 0x27E SWAP2 SWAP1 PUSH2 0x282 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST JUMPDEST DUP1 DUP3 GT ISZERO PUSH2 0x29B JUMPI PUSH1 0x0 DUP2 PUSH1 0x0 SWAP1 SSTORE POP PUSH1 0x1 ADD PUSH2 0x283 JUMP JUMPDEST POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP2 MLOAD 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 JUMPDEST DUP4 DUP2 LT ISZERO PUSH2 0x2D9 JUMPI DUP1 DUP3 ADD MLOAD DUP2 DUP5 ADD MSTORE PUSH1 0x20 DUP2 ADD SWAP1 POP PUSH2 0x2BE JUMP JUMPDEST DUP4 DUP2 GT ISZERO PUSH2 0x2E8 JUMPI PUSH1 0x0 DUP5 DUP5 ADD MSTORE JUMPDEST POP POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x1F NOT PUSH1 0x1F DUP4 ADD AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x30A DUP3 PUSH2 0x29F JUMP JUMPDEST PUSH2 0x314 DUP2 DUP6 PUSH2 0x2AA JUMP JUMPDEST SWAP4 POP PUSH2 0x324 DUP2 DUP6 PUSH1 0x20 DUP7 ADD PUSH2 0x2BB JUMP JUMPDEST PUSH2 0x32D DUP2 PUSH2 0x2EE JUMP JUMPDEST DUP5 ADD SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP DUP2 DUP2 SUB PUSH1 0x0 DUP4 ADD MSTORE PUSH2 0x352 DUP2 DUP5 PUSH2 0x2FF JUMP JUMPDEST SWAP1 POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x40 MLOAD SWAP1 POP SWAP1 JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP2 SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x381 DUP2 PUSH2 0x36E JUMP JUMPDEST DUP2 EQ PUSH2 0x38C JUMPI PUSH1 0x0 DUP1 REVERT JUMPDEST POP JUMP JUMPDEST PUSH1 0x0 DUP2 CALLDATALOAD SWAP1 POP PUSH2 0x39E DUP2 PUSH2 0x378 JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x3BA JUMPI PUSH2 0x3B9 PUSH2 0x364 JUMP JUMPDEST JUMPDEST PUSH1 0x0 PUSH2 0x3C8 DUP5 DUP3 DUP6 ADD PUSH2 0x38F JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH1 0x0 DUP1 REVERT JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x41 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH2 0x413 DUP3 PUSH2 0x2EE JUMP JUMPDEST DUP2 ADD DUP2 DUP2 LT PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT OR ISZERO PUSH2 0x432 JUMPI PUSH2 0x431 PUSH2 0x3DB JUMP JUMPDEST JUMPDEST DUP1 PUSH1 0x40 MSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x445 PUSH2 0x35A JUMP JUMPDEST SWAP1 POP PUSH2 0x451 DUP3 DUP3 PUSH2 0x40A JUMP JUMPDEST SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH8 0xFFFFFFFFFFFFFFFF DUP3 GT ISZERO PUSH2 0x471 JUMPI PUSH2 0x470 PUSH2 0x3DB JUMP JUMPDEST JUMPDEST PUSH2 0x47A DUP3 PUSH2 0x2EE JUMP JUMPDEST SWAP1 POP PUSH1 0x20 DUP2 ADD SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST DUP3 DUP2 DUP4 CALLDATACOPY PUSH1 0x0 DUP4 DUP4 ADD MSTORE POP POP POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x4A9 PUSH2 0x4A4 DUP5 PUSH2 0x456 JUMP JUMPDEST PUSH2 0x43B JUMP JUMPDEST SWAP1 POP DUP3 DUP2 MSTORE PUSH1 0x20 DUP2 ADD DUP5 DUP5 DUP5 ADD GT ISZERO PUSH2 0x4C5 JUMPI PUSH2 0x4C4 PUSH2 0x3D6 JUMP JUMPDEST JUMPDEST PUSH2 0x4D0 DUP5 DUP3 DUP6 PUSH2 0x487 JUMP JUMPDEST POP SWAP4 SWAP3 POP POP POP JUMP JUMPDEST PUSH1 0x0 DUP3 PUSH1 0x1F DUP4 ADD SLT PUSH2 0x4ED JUMPI PUSH2 0x4EC PUSH2 0x3D1 JUMP JUMPDEST JUMPDEST DUP2 CALLDATALOAD PUSH2 0x4FD DUP5 DUP3 PUSH1 0x20 DUP7 ADD PUSH2 0x496 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 DUP5 SUB SLT ISZERO PUSH2 0x51C JUMPI PUSH2 0x51B PUSH2 0x364 JUMP JUMPDEST JUMPDEST PUSH1 0x0 DUP3 ADD CALLDATALOAD PUSH8 0xFFFFFFFFFFFFFFFF DUP2 GT ISZERO PUSH2 0x53A JUMPI PUSH2 0x539 PUSH2 0x369 JUMP JUMPDEST JUMPDEST PUSH2 0x546 DUP5 DUP3 DUP6 ADD PUSH2 0x4D8 JUMP JUMPDEST SWAP2 POP POP SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH2 0x558 DUP2 PUSH2 0x36E JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x573 PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x54F JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH1 0x0 PUSH20 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF DUP3 AND SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH1 0x0 PUSH2 0x5A4 DUP3 PUSH2 0x579 JUMP JUMPDEST SWAP1 POP SWAP2 SWAP1 POP JUMP JUMPDEST PUSH2 0x5B4 DUP2 PUSH2 0x599 JUMP JUMPDEST DUP3 MSTORE POP POP JUMP JUMPDEST PUSH1 0x0 PUSH1 0x20 DUP3 ADD SWAP1 POP PUSH2 0x5CF PUSH1 0x0 DUP4 ADD DUP5 PUSH2 0x5AB JUMP JUMPDEST SWAP3 SWAP2 POP POP JUMP JUMPDEST PUSH32 0x4E487B7100000000000000000000000000000000000000000000000000000000 PUSH1 0x0 MSTORE PUSH1 0x22 PUSH1 0x4 MSTORE PUSH1 0x24 PUSH1 0x0 REVERT JUMPDEST PUSH1 0x0 PUSH1 0x2 DUP3 DIV SWAP1 POP PUSH1 0x1 DUP3 AND DUP1 PUSH2 0x61C JUMPI PUSH1 0x7F DUP3 AND SWAP2 POP JUMPDEST PUSH1 0x20 DUP3 LT DUP2 EQ ISZERO PUSH2 0x630 JUMPI PUSH2 0x62F PUSH2 0x5D5 JUMP JUMPDEST JUMPDEST POP SWAP2 SWAP1 POP JUMP INVALID LOG2 PUSH5 0x6970667358 0x22 SLT KECCAK256 0x25 0x5F SWAP16 PUSH21 0xBB05BED386DDA29B9BEAC2D9B4E32E9A3BC1FCF9DB DUP16 LOG2 SWAP2 TIMESTAMP DIV 0xD3 CALLER PUSH5 0x736F6C6343 STOP ADDMOD SIGNEXTEND STOP CALLER ",
"sourceMap": "63:907:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;111:22;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;760:69;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;611:90;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;894:73;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;204:30;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;88:17;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;111:22;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;760:69::-;816:6;808:5;:14;;;;760:69;:::o;611:90::-;685:9;674:8;:20;;;;;;;;;;;;:::i;:::-;;611:90;:::o;894:73::-;933:4;324:3;949:11;;894:73;:::o;204:30::-;;;:::o;88:17::-;;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;;;;;:::o;7:99:1:-;59:6;93:5;87:12;77:22;;7:99;;;:::o;112:169::-;196:11;230:6;225:3;218:19;270:4;265:3;261:14;246:29;;112:169;;;;:::o;287:307::-;355:1;365:113;379:6;376:1;373:13;365:113;;;464:1;459:3;455:11;449:18;445:1;440:3;436:11;429:39;401:2;398:1;394:10;389:15;;365:113;;;496:6;493:1;490:13;487:101;;;576:1;567:6;562:3;558:16;551:27;487:101;336:258;287:307;;;:::o;600:102::-;641:6;692:2;688:7;683:2;676:5;672:14;668:28;658:38;;600:102;;;:::o;708:364::-;796:3;824:39;857:5;824:39;:::i;:::-;879:71;943:6;938:3;879:71;:::i;:::-;872:78;;959:52;1004:6;999:3;992:4;985:5;981:16;959:52;:::i;:::-;1036:29;1058:6;1036:29;:::i;:::-;1031:3;1027:39;1020:46;;800:272;708:364;;;;:::o;1078:313::-;1191:4;1229:2;1218:9;1214:18;1206:26;;1278:9;1272:4;1268:20;1264:1;1253:9;1249:17;1242:47;1306:78;1379:4;1370:6;1306:78;:::i;:::-;1298:86;;1078:313;;;;:::o;1397:75::-;1430:6;1463:2;1457:9;1447:19;;1397:75;:::o;1478:117::-;1587:1;1584;1577:12;1601:117;1710:1;1707;1700:12;1724:77;1761:7;1790:5;1779:16;;1724:77;;;:::o;1807:122::-;1880:24;1898:5;1880:24;:::i;:::-;1873:5;1870:35;1860:63;;1919:1;1916;1909:12;1860:63;1807:122;:::o;1935:139::-;1981:5;2019:6;2006:20;1997:29;;2035:33;2062:5;2035:33;:::i;:::-;1935:139;;;;:::o;2080:329::-;2139:6;2188:2;2176:9;2167:7;2163:23;2159:32;2156:119;;;2194:79;;:::i;:::-;2156:119;2314:1;2339:53;2384:7;2375:6;2364:9;2360:22;2339:53;:::i;:::-;2329:63;;2285:117;2080:329;;;;:::o;2415:117::-;2524:1;2521;2514:12;2538:117;2647:1;2644;2637:12;2661:180;2709:77;2706:1;2699:88;2806:4;2803:1;2796:15;2830:4;2827:1;2820:15;2847:281;2930:27;2952:4;2930:27;:::i;:::-;2922:6;2918:40;3060:6;3048:10;3045:22;3024:18;3012:10;3009:34;3006:62;3003:88;;;3071:18;;:::i;:::-;3003:88;3111:10;3107:2;3100:22;2890:238;2847:281;;:::o;3134:129::-;3168:6;3195:20;;:::i;:::-;3185:30;;3224:33;3252:4;3244:6;3224:33;:::i;:::-;3134:129;;;:::o;3269:308::-;3331:4;3421:18;3413:6;3410:30;3407:56;;;3443:18;;:::i;:::-;3407:56;3481:29;3503:6;3481:29;:::i;:::-;3473:37;;3565:4;3559;3555:15;3547:23;;3269:308;;;:::o;3583:154::-;3667:6;3662:3;3657;3644:30;3729:1;3720:6;3715:3;3711:16;3704:27;3583:154;;;:::o;3743:412::-;3821:5;3846:66;3862:49;3904:6;3862:49;:::i;:::-;3846:66;:::i;:::-;3837:75;;3935:6;3928:5;3921:21;3973:4;3966:5;3962:16;4011:3;4002:6;3997:3;3993:16;3990:25;3987:112;;;4018:79;;:::i;:::-;3987:112;4108:41;4142:6;4137:3;4132;4108:41;:::i;:::-;3827:328;3743:412;;;;;:::o;4175:340::-;4231:5;4280:3;4273:4;4265:6;4261:17;4257:27;4247:122;;4288:79;;:::i;:::-;4247:122;4405:6;4392:20;4430:79;4505:3;4497:6;4490:4;4482:6;4478:17;4430:79;:::i;:::-;4421:88;;4237:278;4175:340;;;;:::o;4521:509::-;4590:6;4639:2;4627:9;4618:7;4614:23;4610:32;4607:119;;;4645:79;;:::i;:::-;4607:119;4793:1;4782:9;4778:17;4765:31;4823:18;4815:6;4812:30;4809:117;;;4845:79;;:::i;:::-;4809:117;4950:63;5005:7;4996:6;4985:9;4981:22;4950:63;:::i;:::-;4940:73;;4736:287;4521:509;;;;:::o;5036:118::-;5123:24;5141:5;5123:24;:::i;:::-;5118:3;5111:37;5036:118;;:::o;5160:222::-;5253:4;5291:2;5280:9;5276:18;5268:26;;5304:71;5372:1;5361:9;5357:17;5348:6;5304:71;:::i;:::-;5160:222;;;;:::o;5388:126::-;5425:7;5465:42;5458:5;5454:54;5443:65;;5388:126;;;:::o;5520:96::-;5557:7;5586:24;5604:5;5586:24;:::i;:::-;5575:35;;5520:96;;;:::o;5622:118::-;5709:24;5727:5;5709:24;:::i;:::-;5704:3;5697:37;5622:118;;:::o;5746:222::-;5839:4;5877:2;5866:9;5862:18;5854:26;;5890:71;5958:1;5947:9;5943:17;5934:6;5890:71;:::i;:::-;5746:222;;;;:::o;5974:180::-;6022:77;6019:1;6012:88;6119:4;6116:1;6109:15;6143:4;6140:1;6133:15;6160:320;6204:6;6241:1;6235:4;6231:12;6221:22;;6288:1;6282:4;6278:12;6309:18;6299:81;;6365:4;6357:6;6353:17;6343:27;;6299:81;6427:2;6419:6;6416:14;6396:18;6393:38;6390:84;;;6446:18;;:::i;:::-;6390:84;6211:269;6160:320;;;:::o"
},
"gasEstimates": {
"creation": {
"codeDepositCost": "328800",
"executionCost": "infinite",
"totalCost": "infinite"
},
"external": {
"getArea()": "381",
"location()": "infinite",
"owner()": "infinite",
"price()": "2517",
"setLocation(string)": "infinite",
"setValue(uint256)": "22520"
}
},
"methodIdentifiers": {
"getArea()": "85be3e62",
"location()": "516f279e",
"owner()": "8da5cb5b",
"price()": "a035b1fe",
"setLocation(string)": "827bfbdf",
"setValue(uint256)": "55241077"
}
},
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "_price",
"type": "uint256"
},
{
"internalType": "string",
"name": "_location",
"type": "string"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "getArea",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "location",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "price",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_location",
"type": "string"
}
],
"name": "setLocation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_price",
"type": "uint256"
}
],
"name": "setValue",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
}
{
"compiler": {
"version": "0.8.11+commit.d7f03943"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "_price",
"type": "uint256"
},
{
"internalType": "string",
"name": "_location",
"type": "string"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [],
"name": "getArea",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "location",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "owner",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "price",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_location",
"type": "string"
}
],
"name": "setLocation",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_price",
"type": "uint256"
}
],
"name": "setValue",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"devdoc": {
"kind": "dev",
"methods": {},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {},
"version": 1
}
},
"settings": {
"compilationTarget": {
"contracts/Property.sol": "Property"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
},
"sources": {
"contracts/Property.sol": {
"keccak256": "0x475296dc1b74b7106b237334de615ed1d0926d448d57217d26f7a41d49e8f5cd",
"license": "GPL-3.0",
"urls": [
"bzz-raw://2dbbf03d730c94f9b2ba130919f9ad73c503127c0f6bcbe1eaf0285afd3288ed",
"dweb:/ipfs/QmdZvVi1R46C4FFzGtLVyM2mVzoaHVWY9PzQxAb1Yzsv7s"
]
}
},
"version": 1
}
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.8.9;
contract Property {
uint public price;
string public location;
//immutable can only be initialised inline or in constructor
address immutable public owner;
//constant are initialised inline when deployinng contract
uint constant area = 100;
//contructor is called only once when new instance of contract is deployed
constructor(uint _price, string memory _location){
price = _price;
location = _location;
owner = msg.sender;
}
//memory keyword is used for non reference types
function setLocation(string memory _location) public {
location = _location;
}
//memory keyword is not used for reference types
function setValue(uint _price) public {
price = _price;
}
//pure/view is used when contract state is not changed
function getArea() public pure returns(uint) {
return area;
}
}
// Right click on the script name and hit "Run" to execute
(async () => {
try {
console.log('Running deployWithEthers script...')
const contractName = 'Storage' // Change this for other contract
const constructorArgs = [] // Put constructor args (if any) here for your contract
// Note that the script needs the ABI which is generated from the compilation artifact.
// Make sure contract is compiled and artifacts are generated
const artifactsPath = `browser/contracts/artifacts/${contractName}.json` // Change this for different path
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
// 'web3Provider' is a remix global variable object
const signer = (new ethers.providers.Web3Provider(web3Provider)).getSigner()
let factory = new ethers.ContractFactory(metadata.abi, metadata.data.bytecode.object, signer);
let contract = await factory.deploy(...constructorArgs);
console.log('Contract Address: ', contract.address);
// The contract is NOT deployed yet; we must wait until it is mined
await contract.deployed()
console.log('Deployment successful.')
} catch (e) {
console.log(e.message)
}
})()
// Right click on the script name and hit "Run" to execute
(async () => {
try {
console.log('Running deployWithWeb3 script...')
const contractName = 'Storage' // Change this for other contract
const constructorArgs = [] // Put constructor args (if any) here for your contract
// Note that the script needs the ABI which is generated from the compilation artifact.
// Make sure contract is compiled and artifacts are generated
const artifactsPath = `browser/contracts/artifacts/${contractName}.json` // Change this for different path
const metadata = JSON.parse(await remix.call('fileManager', 'getFile', artifactsPath))
const accounts = await web3.eth.getAccounts()
let contract = new web3.eth.Contract(metadata.abi)
contract = contract.deploy({
data: metadata.data.bytecode.object,
arguments: constructorArgs
})
const newContractInstance = await contract.send({
from: accounts[0],
gas: 1500000,
gasPrice: '30000000000'
})
console.log('Contract deployed at address: ', newContractInstance.options.address)
} catch (e) {
console.log(e.message)
}
})()
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
import "remix_tests.sol"; // this import is automatically injected by Remix.
import "../contracts/3_Ballot.sol";
contract BallotTest {
bytes32[] proposalNames;
Ballot ballotToTest;
function beforeAll () public {
proposalNames.push(bytes32("candidate1"));
ballotToTest = new Ballot(proposalNames);
}
function checkWinningProposal () public {
ballotToTest.vote(0);
Assert.equal(ballotToTest.winningProposal(), uint(0), "proposal at index 0 should be the winning proposal");
Assert.equal(ballotToTest.winnerName(), bytes32("candidate1"), "candidate1 should be the winner name");
}
function checkWinninProposalWithReturnValue () public view returns (bool) {
return ballotToTest.winningProposal() == 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment