alpha redeployment

This commit is contained in:
Tim Olson
2023-11-20 21:25:57 -04:00
parent 56dc1a4032
commit a6983d23bd
5 changed files with 1139 additions and 1126 deletions

View File

@@ -63,8 +63,8 @@
{
"transactionHash": "0xf22813bd706f4d1ce9fe37fc23844d070b7a0a34c6676a320d0c348487d16801",
"transactionIndex": "0x0",
"blockHash": "0xdb462dd13a8b46af5b23c84df1e61e96e9bba65f8b001b17b0c9acadf954be06",
"blockNumber": "0x9088872",
"blockHash": "0xc645087c7c0240a977d4de3ea924623f0a644eac03a33ca9e152e1409624960b",
"blockNumber": "0x9115421",
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"to": "0x4e59b44847b379578588920cA78FbF26c0B4956C",
"cumulativeGasUsed": "0x45afc0",
@@ -79,8 +79,8 @@
{
"transactionHash": "0xe53a4e54f6a63e12023d3ac357f745b67459d515b2f011ffdd86f910e44521bd",
"transactionIndex": "0x1",
"blockHash": "0xdb462dd13a8b46af5b23c84df1e61e96e9bba65f8b001b17b0c9acadf954be06",
"blockNumber": "0x9088872",
"blockHash": "0xc645087c7c0240a977d4de3ea924623f0a644eac03a33ca9e152e1409624960b",
"blockNumber": "0x9115421",
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"to": null,
"cumulativeGasUsed": "0x562074",
@@ -95,8 +95,8 @@
{
"transactionHash": "0xb7718e88a0e42f45e2a544eaa1bc79c844fe2c6fda201d0566a7bae52c2561ce",
"transactionIndex": "0x2",
"blockHash": "0xdb462dd13a8b46af5b23c84df1e61e96e9bba65f8b001b17b0c9acadf954be06",
"blockNumber": "0x9088872",
"blockHash": "0xc645087c7c0240a977d4de3ea924623f0a644eac03a33ca9e152e1409624960b",
"blockNumber": "0x9115421",
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"to": null,
"cumulativeGasUsed": "0x5eb11f",
@@ -112,8 +112,8 @@
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1700287805,
"timestamp": 1700442975,
"chain": 53261,
"multi": false,
"commit": "8b87194"
"commit": "29ba819"
}

View File

@@ -78,8 +78,8 @@
{
"transactionHash": "0x84c83d56dd4cd698ea0b2877691b5a70b999862d377026b8deb9f68b37ec0e84",
"transactionIndex": "0x0",
"blockHash": "0xe3cf9e6cad7337fcfb14ee0cb8cbc447183f4057510f699831f4d80f27f8a1cf",
"blockNumber": "0x90889b8",
"blockHash": "0x2fbda4a191eebbac1dcfef3b48812c4e927e551c84f3856a572df9cedc673f09",
"blockNumber": "0x911542e",
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"to": null,
"cumulativeGasUsed": "0x3e265",
@@ -94,8 +94,8 @@
{
"transactionHash": "0xecda2e48a1c2b6e5830017af8c35720f0dc943b576095723637146e285c90aef",
"transactionIndex": "0x1",
"blockHash": "0xe3cf9e6cad7337fcfb14ee0cb8cbc447183f4057510f699831f4d80f27f8a1cf",
"blockNumber": "0x90889b8",
"blockHash": "0x2fbda4a191eebbac1dcfef3b48812c4e927e551c84f3856a572df9cedc673f09",
"blockNumber": "0x911542e",
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"to": null,
"cumulativeGasUsed": "0x3305d3",
@@ -110,8 +110,8 @@
{
"transactionHash": "0x1da1c66828cb99e744f9f5617daf8216389bbd77ba3140e22bd4bc0b9b642c4a",
"transactionIndex": "0x2",
"blockHash": "0xe3cf9e6cad7337fcfb14ee0cb8cbc447183f4057510f699831f4d80f27f8a1cf",
"blockNumber": "0x90889b8",
"blockHash": "0x2fbda4a191eebbac1dcfef3b48812c4e927e551c84f3856a572df9cedc673f09",
"blockNumber": "0x911542e",
"from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"to": "0x6053cA02DCd3D71B0987b4DC2a39b3dDA04647C7",
"cumulativeGasUsed": "0x9e104c",
@@ -127,11 +127,12 @@
"0x00000000000000000000000000000000000000000000000000000000000001f4"
],
"data": "0x000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000ec9b8f69286aa5300a68c76678b236caecd107fb",
"blockHash": "0xe3cf9e6cad7337fcfb14ee0cb8cbc447183f4057510f699831f4d80f27f8a1cf",
"blockNumber": "0x90889b8",
"blockHash": "0x2fbda4a191eebbac1dcfef3b48812c4e927e551c84f3856a572df9cedc673f09",
"blockNumber": "0x911542e",
"transactionHash": "0x1da1c66828cb99e744f9f5617daf8216389bbd77ba3140e22bd4bc0b9b642c4a",
"transactionIndex": "0x2",
"logIndex": "0x0",
"logIndex": "0x1a",
"transactionLogIndex": "0x0",
"removed": false
},
{
@@ -140,11 +141,12 @@
"0x98636036cb66a9c19a37435efc1e90142190214e8abeb821bdba3f2990dd4c95"
],
"data": "0x0000000000000000000000000000000000000000000010c6f7a0b5ed8d36b4c7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbc89b",
"blockHash": "0xe3cf9e6cad7337fcfb14ee0cb8cbc447183f4057510f699831f4d80f27f8a1cf",
"blockNumber": "0x90889b8",
"blockHash": "0x2fbda4a191eebbac1dcfef3b48812c4e927e551c84f3856a572df9cedc673f09",
"blockNumber": "0x911542e",
"transactionHash": "0x1da1c66828cb99e744f9f5617daf8216389bbd77ba3140e22bd4bc0b9b642c4a",
"transactionIndex": "0x2",
"logIndex": "0x1",
"logIndex": "0x1b",
"transactionLogIndex": "0x1",
"removed": false
},
{
@@ -155,11 +157,12 @@
"0x0000000000000000000000006053ca02dcd3d71b0987b4dc2a39b3dda04647c7"
],
"data": "0x0000000000000000000000000000000000000000000422ca8b0a00a425000000",
"blockHash": "0xe3cf9e6cad7337fcfb14ee0cb8cbc447183f4057510f699831f4d80f27f8a1cf",
"blockNumber": "0x90889b8",
"blockHash": "0x2fbda4a191eebbac1dcfef3b48812c4e927e551c84f3856a572df9cedc673f09",
"blockNumber": "0x911542e",
"transactionHash": "0x1da1c66828cb99e744f9f5617daf8216389bbd77ba3140e22bd4bc0b9b642c4a",
"transactionIndex": "0x2",
"logIndex": "0x2",
"logIndex": "0x1c",
"transactionLogIndex": "0x2",
"removed": false
},
{
@@ -170,11 +173,12 @@
"0x000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88"
],
"data": "0x0000000000000000000000000000000000000000000422ca8b0a00a425000000",
"blockHash": "0xe3cf9e6cad7337fcfb14ee0cb8cbc447183f4057510f699831f4d80f27f8a1cf",
"blockNumber": "0x90889b8",
"blockHash": "0x2fbda4a191eebbac1dcfef3b48812c4e927e551c84f3856a572df9cedc673f09",
"blockNumber": "0x911542e",
"transactionHash": "0x1da1c66828cb99e744f9f5617daf8216389bbd77ba3140e22bd4bc0b9b642c4a",
"transactionIndex": "0x2",
"logIndex": "0x3",
"logIndex": "0x1d",
"transactionLogIndex": "0x3",
"removed": false
},
{
@@ -185,11 +189,12 @@
"0x0000000000000000000000006053ca02dcd3d71b0987b4dc2a39b3dda04647c7"
],
"data": "0x0000000000000000000000000000000000000000000000000000048c27395000",
"blockHash": "0xe3cf9e6cad7337fcfb14ee0cb8cbc447183f4057510f699831f4d80f27f8a1cf",
"blockNumber": "0x90889b8",
"blockHash": "0x2fbda4a191eebbac1dcfef3b48812c4e927e551c84f3856a572df9cedc673f09",
"blockNumber": "0x911542e",
"transactionHash": "0x1da1c66828cb99e744f9f5617daf8216389bbd77ba3140e22bd4bc0b9b642c4a",
"transactionIndex": "0x2",
"logIndex": "0x4",
"logIndex": "0x1e",
"transactionLogIndex": "0x4",
"removed": false
},
{
@@ -200,11 +205,12 @@
"0x000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88"
],
"data": "0x0000000000000000000000000000000000000000000000000000048c27395000",
"blockHash": "0xe3cf9e6cad7337fcfb14ee0cb8cbc447183f4057510f699831f4d80f27f8a1cf",
"blockNumber": "0x90889b8",
"blockHash": "0x2fbda4a191eebbac1dcfef3b48812c4e927e551c84f3856a572df9cedc673f09",
"blockNumber": "0x911542e",
"transactionHash": "0x1da1c66828cb99e744f9f5617daf8216389bbd77ba3140e22bd4bc0b9b642c4a",
"transactionIndex": "0x2",
"logIndex": "0x5",
"logIndex": "0x1f",
"transactionLogIndex": "0x5",
"removed": false
},
{
@@ -215,11 +221,12 @@
"0x000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88"
],
"data": "0x00000000000000000000000000000000000000000000000000000000000f4204",
"blockHash": "0xe3cf9e6cad7337fcfb14ee0cb8cbc447183f4057510f699831f4d80f27f8a1cf",
"blockNumber": "0x90889b8",
"blockHash": "0x2fbda4a191eebbac1dcfef3b48812c4e927e551c84f3856a572df9cedc673f09",
"blockNumber": "0x911542e",
"transactionHash": "0x1da1c66828cb99e744f9f5617daf8216389bbd77ba3140e22bd4bc0b9b642c4a",
"transactionIndex": "0x2",
"logIndex": "0x6",
"logIndex": "0x20",
"transactionLogIndex": "0x6",
"removed": false
},
{
@@ -230,11 +237,12 @@
"0x000000000000000000000000ec9b8f69286aa5300a68c76678b236caecd107fb"
],
"data": "0x0000000000000000000000000000000000000000000422ca8b0a00a424f0bdfc",
"blockHash": "0xe3cf9e6cad7337fcfb14ee0cb8cbc447183f4057510f699831f4d80f27f8a1cf",
"blockNumber": "0x90889b8",
"blockHash": "0x2fbda4a191eebbac1dcfef3b48812c4e927e551c84f3856a572df9cedc673f09",
"blockNumber": "0x911542e",
"transactionHash": "0x1da1c66828cb99e744f9f5617daf8216389bbd77ba3140e22bd4bc0b9b642c4a",
"transactionIndex": "0x2",
"logIndex": "0x7",
"logIndex": "0x21",
"transactionLogIndex": "0x7",
"removed": false
},
{
@@ -245,11 +253,12 @@
"0x000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe88"
],
"data": "0x0000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0xe3cf9e6cad7337fcfb14ee0cb8cbc447183f4057510f699831f4d80f27f8a1cf",
"blockNumber": "0x90889b8",
"blockHash": "0x2fbda4a191eebbac1dcfef3b48812c4e927e551c84f3856a572df9cedc673f09",
"blockNumber": "0x911542e",
"transactionHash": "0x1da1c66828cb99e744f9f5617daf8216389bbd77ba3140e22bd4bc0b9b642c4a",
"transactionIndex": "0x2",
"logIndex": "0x8",
"logIndex": "0x22",
"transactionLogIndex": "0x8",
"removed": false
},
{
@@ -260,11 +269,12 @@
"0x000000000000000000000000ec9b8f69286aa5300a68c76678b236caecd107fb"
],
"data": "0x0000000000000000000000000000000000000000000000000000048c27395000",
"blockHash": "0xe3cf9e6cad7337fcfb14ee0cb8cbc447183f4057510f699831f4d80f27f8a1cf",
"blockNumber": "0x90889b8",
"blockHash": "0x2fbda4a191eebbac1dcfef3b48812c4e927e551c84f3856a572df9cedc673f09",
"blockNumber": "0x911542e",
"transactionHash": "0x1da1c66828cb99e744f9f5617daf8216389bbd77ba3140e22bd4bc0b9b642c4a",
"transactionIndex": "0x2",
"logIndex": "0x9",
"logIndex": "0x23",
"transactionLogIndex": "0x9",
"removed": false
},
{
@@ -276,11 +286,12 @@
"0x00000000000000000000000000000000000000000000000000000000000d89e6"
],
"data": "0x000000000000000000000000c36442b4a4522e871399cd717abdd847ab11fe880000000000000000000000000000000000000000000000004563918244f3ffff0000000000000000000000000000000000000000000422ca8b0a00a424f0bdfc0000000000000000000000000000000000000000000000000000048c27395000",
"blockHash": "0xe3cf9e6cad7337fcfb14ee0cb8cbc447183f4057510f699831f4d80f27f8a1cf",
"blockNumber": "0x90889b8",
"blockHash": "0x2fbda4a191eebbac1dcfef3b48812c4e927e551c84f3856a572df9cedc673f09",
"blockNumber": "0x911542e",
"transactionHash": "0x1da1c66828cb99e744f9f5617daf8216389bbd77ba3140e22bd4bc0b9b642c4a",
"transactionIndex": "0x2",
"logIndex": "0xa",
"logIndex": "0x24",
"transactionLogIndex": "0xa",
"removed": false
},
{
@@ -289,33 +300,35 @@
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000000000000000000000000000000000000000000000",
"0x000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266",
"0x00000000000000000000000000000000000000000000000000000000000eb567"
"0x00000000000000000000000000000000000000000000000000000000000ebe66"
],
"data": "0x",
"blockHash": "0xe3cf9e6cad7337fcfb14ee0cb8cbc447183f4057510f699831f4d80f27f8a1cf",
"blockNumber": "0x90889b8",
"blockHash": "0x2fbda4a191eebbac1dcfef3b48812c4e927e551c84f3856a572df9cedc673f09",
"blockNumber": "0x911542e",
"transactionHash": "0x1da1c66828cb99e744f9f5617daf8216389bbd77ba3140e22bd4bc0b9b642c4a",
"transactionIndex": "0x2",
"logIndex": "0xb",
"logIndex": "0x25",
"transactionLogIndex": "0xb",
"removed": false
},
{
"address": "0xC36442b4a4522E871399CD717aBDD847Ab11FE88",
"topics": [
"0x3067048beee31b25b2f1681f88dac838c8bba36af25bfb2b7cf7473a5847e35f",
"0x00000000000000000000000000000000000000000000000000000000000eb567"
"0x00000000000000000000000000000000000000000000000000000000000ebe66"
],
"data": "0x0000000000000000000000000000000000000000000000004563918244f3ffff0000000000000000000000000000000000000000000422ca8b0a00a424f0bdfc0000000000000000000000000000000000000000000000000000048c27395000",
"blockHash": "0xe3cf9e6cad7337fcfb14ee0cb8cbc447183f4057510f699831f4d80f27f8a1cf",
"blockNumber": "0x90889b8",
"blockHash": "0x2fbda4a191eebbac1dcfef3b48812c4e927e551c84f3856a572df9cedc673f09",
"blockNumber": "0x911542e",
"transactionHash": "0x1da1c66828cb99e744f9f5617daf8216389bbd77ba3140e22bd4bc0b9b642c4a",
"transactionIndex": "0x2",
"logIndex": "0xc",
"logIndex": "0x26",
"transactionLogIndex": "0xc",
"removed": false
}
],
"status": "0x1",
"logsBloom": "0x00800000000000000000108000104000000081000000000000002000000000000500000000000000000000000000080000014000000000000400000000210000000000000000800000000208000000011001000800000000000008800000020400000000023000000800000100000800000000080800000000000010000000000000000008800002090000000000000000000000000400020000004000000000020100000000020000100000008000000000000040200000040000000000080040000002000000200000080000000000200000002000000000000000000020000010200000000040040000000000000000000000000200000000000000000800",
"logsBloom": "0x00800000000000000000108000104000000081000000000000000000000000000500000000000000000000000000080000014000040000000400000000210000000000000000800000000208000000010001000800000000000008800000020400000000023000000800000100000800000000080800000000000010000000000000000048800002010000000000000000000000000400020000004000000000020100000000020000100000008000000000000040200000040000000000080040000002000000200000080000000000200000002000000000000000000020000010220000000040040000000000000000000000000200000000000000000800",
"type": "0x2",
"effectiveGasPrice": "0xb2d05e07"
}
@@ -325,8 +338,8 @@
],
"pending": [],
"returns": {},
"timestamp": 1700288458,
"timestamp": 1700443001,
"chain": 53261,
"multi": false,
"commit": "8b87194"
"commit": "29ba819"
}

File diff suppressed because it is too large Load Diff

View File

@@ -2202,7 +2202,7 @@
},
"ast": {
"absolutePath": "test/TestSinglePool.sol",
"id": 51669,
"id": 51760,
"exportedSymbols": {
"Constants": [
46264
@@ -2325,7 +2325,7 @@
2357
],
"TestSinglePool": [
51668
51759
],
"TickMath": [
45059
@@ -2362,7 +2362,7 @@
"src": "65:396:67",
"nodes": [
{
"id": 51616,
"id": 51707,
"nodeType": "PragmaDirective",
"src": "65:24:67",
"nodes": [],
@@ -2374,7 +2374,7 @@
]
},
{
"id": 51617,
"id": 51708,
"nodeType": "PragmaDirective",
"src": "90:19:67",
"nodes": [],
@@ -2384,56 +2384,56 @@
]
},
{
"id": 51618,
"id": 51709,
"nodeType": "ImportDirective",
"src": "111:32:67",
"nodes": [],
"absolutePath": "lib/forge-std/src/console2.sol",
"file": "forge-std/console2.sol",
"nameLocation": "-1:-1:-1",
"scope": 51669,
"scope": 51760,
"sourceUnit": 29654,
"symbolAliases": [],
"unitAlias": ""
},
{
"id": 51619,
"id": 51710,
"nodeType": "ImportDirective",
"src": "144:28:67",
"nodes": [],
"absolutePath": "lib/forge-std/src/Test.sol",
"file": "forge-std/Test.sol",
"nameLocation": "-1:-1:-1",
"scope": 51669,
"scope": 51760,
"sourceUnit": 11938,
"symbolAliases": [],
"unitAlias": ""
},
{
"id": 51620,
"id": 51711,
"nodeType": "ImportDirective",
"src": "173:23:67",
"nodes": [],
"absolutePath": "test/MockEnv.sol",
"file": "./MockEnv.sol",
"nameLocation": "-1:-1:-1",
"scope": 51669,
"scope": 51760,
"sourceUnit": 50070,
"symbolAliases": [],
"unitAlias": ""
},
{
"id": 51668,
"id": 51759,
"nodeType": "ContractDefinition",
"src": "199:261:67",
"nodes": [
{
"id": 51631,
"id": 51722,
"nodeType": "FunctionDefinition",
"src": "246:47:67",
"nodes": [],
"body": {
"id": 51630,
"id": 51721,
"nodeType": "Block",
"src": "270:23:67",
"nodes": [],
@@ -2443,7 +2443,7 @@
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 51627,
"id": 51718,
"name": "init",
"nodeType": "Identifier",
"overloadedDeclarations": [],
@@ -2454,7 +2454,7 @@
"typeString": "function ()"
}
},
"id": 51628,
"id": 51719,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2470,7 +2470,7 @@
"typeString": "tuple()"
}
},
"id": 51629,
"id": 51720,
"nodeType": "ExpressionStatement",
"src": "280:6:67"
}
@@ -2483,29 +2483,29 @@
"name": "setUp",
"nameLocation": "255:5:67",
"parameters": {
"id": 51625,
"id": 51716,
"nodeType": "ParameterList",
"parameters": [],
"src": "260:2:67"
},
"returnParameters": {
"id": 51626,
"id": 51717,
"nodeType": "ParameterList",
"parameters": [],
"src": "270:0:67"
},
"scope": 51668,
"scope": 51759,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"id": 51667,
"id": 51758,
"nodeType": "FunctionDefinition",
"src": "300:158:67",
"nodes": [],
"body": {
"id": 51666,
"id": 51757,
"nodeType": "Block",
"src": "327:131:67",
"nodes": [],
@@ -2516,14 +2516,14 @@
{
"arguments": [
{
"id": 51639,
"id": 51730,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": -28,
"src": "355:4:67",
"typeDescriptions": {
"typeIdentifier": "t_contract$_TestSinglePool_$51668",
"typeIdentifier": "t_contract$_TestSinglePool_$51759",
"typeString": "contract TestSinglePool"
}
}
@@ -2531,11 +2531,11 @@
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_TestSinglePool_$51668",
"typeIdentifier": "t_contract$_TestSinglePool_$51759",
"typeString": "contract TestSinglePool"
}
],
"id": 51638,
"id": 51729,
"isConstant": false,
"isLValue": false,
"isPure": true,
@@ -2547,14 +2547,14 @@
"typeString": "type(address)"
},
"typeName": {
"id": 51637,
"id": 51728,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "347:7:67",
"typeDescriptions": {}
}
},
"id": 51640,
"id": 51731,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2575,14 +2575,14 @@
"typeIdentifier": "t_rational_1000000000000000000_by_1",
"typeString": "int_const 1000000000000000000"
},
"id": 51645,
"id": 51736,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"leftExpression": {
"hexValue": "31",
"id": 51641,
"id": 51732,
"isConstant": false,
"isLValue": false,
"isPure": true,
@@ -2603,14 +2603,14 @@
"typeIdentifier": "t_rational_1000000000000000000_by_1",
"typeString": "int_const 1000000000000000000"
},
"id": 51644,
"id": 51735,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"leftExpression": {
"hexValue": "3130",
"id": 51642,
"id": 51733,
"isConstant": false,
"isLValue": false,
"isPure": true,
@@ -2628,7 +2628,7 @@
"operator": "**",
"rightExpression": {
"hexValue": "3138",
"id": 51643,
"id": 51734,
"isConstant": false,
"isLValue": false,
"isPure": true,
@@ -2667,7 +2667,7 @@
}
],
"expression": {
"id": 51634,
"id": 51725,
"name": "COIN",
"nodeType": "Identifier",
"overloadedDeclarations": [],
@@ -2678,7 +2678,7 @@
"typeString": "contract MockERC20"
}
},
"id": 51636,
"id": 51727,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2693,7 +2693,7 @@
"typeString": "function (address,uint256) external"
}
},
"id": 51646,
"id": 51737,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2709,23 +2709,23 @@
"typeString": "tuple()"
}
},
"id": 51647,
"id": 51738,
"nodeType": "ExpressionStatement",
"src": "337:36:67"
},
{
"assignments": [
51649
51740
],
"declarations": [
{
"constant": false,
"id": 51649,
"id": 51740,
"mutability": "mutable",
"name": "usd",
"nameLocation": "391:3:67",
"nodeType": "VariableDeclaration",
"scope": 51666,
"scope": 51757,
"src": "383:11:67",
"stateVariable": false,
"storageLocation": "default",
@@ -2734,7 +2734,7 @@
"typeString": "uint256"
},
"typeName": {
"id": 51648,
"id": 51739,
"name": "uint256",
"nodeType": "ElementaryTypeName",
"src": "383:7:67",
@@ -2746,11 +2746,11 @@
"visibility": "internal"
}
],
"id": 51659,
"id": 51750,
"initialValue": {
"arguments": [
{
"id": 51651,
"id": 51742,
"name": "COIN",
"nodeType": "Identifier",
"overloadedDeclarations": [],
@@ -2762,7 +2762,7 @@
}
},
{
"id": 51652,
"id": 51743,
"name": "USD",
"nodeType": "Identifier",
"overloadedDeclarations": [],
@@ -2778,14 +2778,14 @@
"typeIdentifier": "t_rational_1000000000000000000_by_1",
"typeString": "int_const 1000000000000000000"
},
"id": 51657,
"id": 51748,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"leftExpression": {
"hexValue": "31",
"id": 51653,
"id": 51744,
"isConstant": false,
"isLValue": false,
"isPure": true,
@@ -2806,14 +2806,14 @@
"typeIdentifier": "t_rational_1000000000000000000_by_1",
"typeString": "int_const 1000000000000000000"
},
"id": 51656,
"id": 51747,
"isConstant": false,
"isLValue": false,
"isPure": true,
"lValueRequested": false,
"leftExpression": {
"hexValue": "3130",
"id": 51654,
"id": 51745,
"isConstant": false,
"isLValue": false,
"isPure": true,
@@ -2831,7 +2831,7 @@
"operator": "**",
"rightExpression": {
"hexValue": "3138",
"id": 51655,
"id": 51746,
"isConstant": false,
"isLValue": false,
"isPure": true,
@@ -2873,7 +2873,7 @@
"typeString": "int_const 1000000000000000000"
}
],
"id": 51650,
"id": 51741,
"name": "swap",
"nodeType": "Identifier",
"overloadedDeclarations": [
@@ -2887,7 +2887,7 @@
"typeString": "function (contract MockERC20,contract MockERC20,uint256) returns (uint256)"
}
},
"id": 51658,
"id": 51749,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2910,11 +2910,11 @@
"expression": {
"arguments": [
{
"id": 51663,
"id": 51754,
"name": "usd",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 51649,
"referencedDeclaration": 51740,
"src": "447:3:67",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
@@ -2930,7 +2930,7 @@
}
],
"expression": {
"id": 51660,
"id": 51751,
"name": "console2",
"nodeType": "Identifier",
"overloadedDeclarations": [],
@@ -2941,7 +2941,7 @@
"typeString": "type(library console2)"
}
},
"id": 51662,
"id": 51753,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2956,7 +2956,7 @@
"typeString": "function (uint256) pure"
}
},
"id": 51664,
"id": 51755,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2972,7 +2972,7 @@
"typeString": "tuple()"
}
},
"id": 51665,
"id": 51756,
"nodeType": "ExpressionStatement",
"src": "434:17:67"
}
@@ -2985,18 +2985,18 @@
"name": "testSwap",
"nameLocation": "309:8:67",
"parameters": {
"id": 51632,
"id": 51723,
"nodeType": "ParameterList",
"parameters": [],
"src": "317:2:67"
},
"returnParameters": {
"id": 51633,
"id": 51724,
"nodeType": "ParameterList",
"parameters": [],
"src": "327:0:67"
},
"scope": 51668,
"scope": 51759,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
@@ -3006,7 +3006,7 @@
"baseContracts": [
{
"baseName": {
"id": 51621,
"id": 51712,
"name": "MockEnv",
"nameLocations": [
"226:7:67"
@@ -3015,13 +3015,13 @@
"referencedDeclaration": 50069,
"src": "226:7:67"
},
"id": 51622,
"id": 51713,
"nodeType": "InheritanceSpecifier",
"src": "226:7:67"
},
{
"baseName": {
"id": 51623,
"id": 51714,
"name": "Test",
"nameLocations": [
"235:4:67"
@@ -3030,7 +3030,7 @@
"referencedDeclaration": 11937,
"src": "235:4:67"
},
"id": 51624,
"id": 51715,
"nodeType": "InheritanceSpecifier",
"src": "235:4:67"
}
@@ -3045,7 +3045,7 @@
"21582": 1
},
"linearizedBaseContracts": [
51668,
51759,
11937,
2357,
2354,
@@ -3060,7 +3060,7 @@
],
"name": "TestSinglePool",
"nameLocation": "208:14:67",
"scope": 51669,
"scope": 51760,
"usedErrors": [],
"usedEvents": [
5,

View File

@@ -1595,7 +1595,7 @@
},
"ast": {
"absolutePath": "test/TestVault.sol",
"id": 51780,
"id": 51871,
"exportedSymbols": {
"Constants": [
46264
@@ -1703,7 +1703,7 @@
2357
],
"TestVault": [
51779
51870
],
"TransferHelper": [
46063
@@ -1749,7 +1749,7 @@
"src": "39:796:68",
"nodes": [
{
"id": 51670,
"id": 51761,
"nodeType": "PragmaDirective",
"src": "39:24:68",
"nodes": [],
@@ -1761,59 +1761,59 @@
]
},
{
"id": 51671,
"id": 51762,
"nodeType": "ImportDirective",
"src": "91:32:68",
"nodes": [],
"absolutePath": "lib/forge-std/src/console2.sol",
"file": "forge-std/console2.sol",
"nameLocation": "-1:-1:-1",
"scope": 51780,
"scope": 51871,
"sourceUnit": 29654,
"symbolAliases": [],
"unitAlias": ""
},
{
"id": 51672,
"id": 51763,
"nodeType": "ImportDirective",
"src": "124:28:68",
"nodes": [],
"absolutePath": "src/Factory.sol",
"file": "../src/Factory.sol",
"nameLocation": "-1:-1:-1",
"scope": 51780,
"scope": 51871,
"sourceUnit": 46431,
"symbolAliases": [],
"unitAlias": ""
},
{
"id": 51673,
"id": 51764,
"nodeType": "ImportDirective",
"src": "153:33:68",
"nodes": [],
"absolutePath": "src/VaultAddress.sol",
"file": "../src/VaultAddress.sol",
"nameLocation": "-1:-1:-1",
"scope": 51780,
"scope": 51871,
"sourceUnit": 49318,
"symbolAliases": [],
"unitAlias": ""
},
{
"id": 51674,
"id": 51765,
"nodeType": "ImportDirective",
"src": "187:28:68",
"nodes": [],
"absolutePath": "lib/forge-std/src/Test.sol",
"file": "forge-std/Test.sol",
"nameLocation": "-1:-1:-1",
"scope": 51780,
"scope": 51871,
"sourceUnit": 11938,
"symbolAliases": [],
"unitAlias": ""
},
{
"id": 51675,
"id": 51766,
"nodeType": "PragmaDirective",
"src": "216:19:68",
"nodes": [],
@@ -1823,12 +1823,12 @@
]
},
{
"id": 51779,
"id": 51870,
"nodeType": "ContractDefinition",
"src": "237:597:68",
"nodes": [
{
"id": 51680,
"id": 51771,
"nodeType": "VariableDeclaration",
"src": "271:22:68",
"nodes": [],
@@ -1837,7 +1837,7 @@
"mutability": "mutable",
"name": "factory",
"nameLocation": "286:7:68",
"scope": 51779,
"scope": 51870,
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
@@ -1845,10 +1845,10 @@
"typeString": "contract Factory"
},
"typeName": {
"id": 51679,
"id": 51770,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 51678,
"id": 51769,
"name": "Factory",
"nameLocations": [
"271:7:68"
@@ -1867,7 +1867,7 @@
"visibility": "public"
},
{
"id": 51683,
"id": 51774,
"nodeType": "VariableDeclaration",
"src": "299:18:68",
"nodes": [],
@@ -1876,7 +1876,7 @@
"mutability": "mutable",
"name": "vault",
"nameLocation": "312:5:68",
"scope": 51779,
"scope": 51870,
"stateVariable": true,
"storageLocation": "default",
"typeDescriptions": {
@@ -1884,10 +1884,10 @@
"typeString": "contract Vault"
},
"typeName": {
"id": 51682,
"id": 51773,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 51681,
"id": 51772,
"name": "Vault",
"nameLocations": [
"299:5:68"
@@ -1906,29 +1906,29 @@
"visibility": "public"
},
{
"id": 51736,
"id": 51827,
"nodeType": "FunctionDefinition",
"src": "324:265:68",
"nodes": [],
"body": {
"id": 51735,
"id": 51826,
"nodeType": "Block",
"src": "348:241:68",
"nodes": [],
"statements": [
{
"expression": {
"id": 51691,
"id": 51782,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 51686,
"id": 51777,
"name": "factory",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 51680,
"referencedDeclaration": 51771,
"src": "358:7:68",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Factory_$46430",
@@ -1941,7 +1941,7 @@
"arguments": [],
"expression": {
"argumentTypes": [],
"id": 51689,
"id": 51780,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -1953,10 +1953,10 @@
"typeString": "function () returns (contract Factory)"
},
"typeName": {
"id": 51688,
"id": 51779,
"nodeType": "UserDefinedTypeName",
"pathNode": {
"id": 51687,
"id": 51778,
"name": "Factory",
"nameLocations": [
"372:7:68"
@@ -1973,7 +1973,7 @@
}
}
},
"id": 51690,
"id": 51781,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -1995,7 +1995,7 @@
"typeString": "contract Factory"
}
},
"id": 51692,
"id": 51783,
"nodeType": "ExpressionStatement",
"src": "358:23:68"
},
@@ -2004,7 +2004,7 @@
"arguments": [
{
"hexValue": "666163746f7279",
"id": 51696,
"id": 51787,
"isConstant": false,
"isLValue": false,
"isPure": true,
@@ -2027,7 +2027,7 @@
}
],
"expression": {
"id": 51693,
"id": 51784,
"name": "console2",
"nodeType": "Identifier",
"overloadedDeclarations": [],
@@ -2038,7 +2038,7 @@
"typeString": "type(library console2)"
}
},
"id": 51695,
"id": 51786,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2053,7 +2053,7 @@
"typeString": "function (string memory) pure"
}
},
"id": 51697,
"id": 51788,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2069,7 +2069,7 @@
"typeString": "tuple()"
}
},
"id": 51698,
"id": 51789,
"nodeType": "ExpressionStatement",
"src": "391:23:68"
},
@@ -2079,11 +2079,11 @@
{
"arguments": [
{
"id": 51704,
"id": 51795,
"name": "factory",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 51680,
"referencedDeclaration": 51771,
"src": "445:7:68",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Factory_$46430",
@@ -2098,7 +2098,7 @@
"typeString": "contract Factory"
}
],
"id": 51703,
"id": 51794,
"isConstant": false,
"isLValue": false,
"isPure": true,
@@ -2110,14 +2110,14 @@
"typeString": "type(address)"
},
"typeName": {
"id": 51702,
"id": 51793,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "437:7:68",
"typeDescriptions": {}
}
},
"id": 51705,
"id": 51796,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2142,7 +2142,7 @@
}
],
"expression": {
"id": 51699,
"id": 51790,
"name": "console2",
"nodeType": "Identifier",
"overloadedDeclarations": [],
@@ -2153,7 +2153,7 @@
"typeString": "type(library console2)"
}
},
"id": 51701,
"id": 51792,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2168,7 +2168,7 @@
"typeString": "function (address) pure"
}
},
"id": 51706,
"id": 51797,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2184,23 +2184,23 @@
"typeString": "tuple()"
}
},
"id": 51707,
"id": 51798,
"nodeType": "ExpressionStatement",
"src": "424:30:68"
},
{
"expression": {
"id": 51718,
"id": 51809,
"isConstant": false,
"isLValue": false,
"isPure": false,
"lValueRequested": false,
"leftHandSide": {
"id": 51708,
"id": 51799,
"name": "vault",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 51683,
"referencedDeclaration": 51774,
"src": "464:5:68",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Vault_$49181",
@@ -2216,14 +2216,14 @@
{
"arguments": [
{
"id": 51714,
"id": 51805,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": -28,
"src": "506:4:68",
"typeDescriptions": {
"typeIdentifier": "t_contract$_TestVault_$51779",
"typeIdentifier": "t_contract$_TestVault_$51870",
"typeString": "contract TestVault"
}
}
@@ -2231,11 +2231,11 @@
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_TestVault_$51779",
"typeIdentifier": "t_contract$_TestVault_$51870",
"typeString": "contract TestVault"
}
],
"id": 51713,
"id": 51804,
"isConstant": false,
"isLValue": false,
"isPure": true,
@@ -2247,14 +2247,14 @@
"typeString": "type(address)"
},
"typeName": {
"id": 51712,
"id": 51803,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "498:7:68",
"typeDescriptions": {}
}
},
"id": 51715,
"id": 51806,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2279,18 +2279,18 @@
}
],
"expression": {
"id": 51710,
"id": 51801,
"name": "factory",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 51680,
"referencedDeclaration": 51771,
"src": "478:7:68",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Factory_$46430",
"typeString": "contract Factory"
}
},
"id": 51711,
"id": 51802,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2305,7 +2305,7 @@
"typeString": "function (address) external returns (address payable)"
}
},
"id": 51716,
"id": 51807,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2329,7 +2329,7 @@
"typeString": "address payable"
}
],
"id": 51709,
"id": 51800,
"name": "Vault",
"nodeType": "Identifier",
"overloadedDeclarations": [],
@@ -2340,7 +2340,7 @@
"typeString": "type(contract Vault)"
}
},
"id": 51717,
"id": 51808,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2362,7 +2362,7 @@
"typeString": "contract Vault"
}
},
"id": 51719,
"id": 51810,
"nodeType": "ExpressionStatement",
"src": "464:49:68"
},
@@ -2371,7 +2371,7 @@
"arguments": [
{
"hexValue": "7661756c74",
"id": 51723,
"id": 51814,
"isConstant": false,
"isLValue": false,
"isPure": true,
@@ -2394,7 +2394,7 @@
}
],
"expression": {
"id": 51720,
"id": 51811,
"name": "console2",
"nodeType": "Identifier",
"overloadedDeclarations": [],
@@ -2405,7 +2405,7 @@
"typeString": "type(library console2)"
}
},
"id": 51722,
"id": 51813,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2420,7 +2420,7 @@
"typeString": "function (string memory) pure"
}
},
"id": 51724,
"id": 51815,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2436,7 +2436,7 @@
"typeString": "tuple()"
}
},
"id": 51725,
"id": 51816,
"nodeType": "ExpressionStatement",
"src": "523:21:68"
},
@@ -2446,11 +2446,11 @@
{
"arguments": [
{
"id": 51731,
"id": 51822,
"name": "vault",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 51683,
"referencedDeclaration": 51774,
"src": "575:5:68",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Vault_$49181",
@@ -2465,7 +2465,7 @@
"typeString": "contract Vault"
}
],
"id": 51730,
"id": 51821,
"isConstant": false,
"isLValue": false,
"isPure": true,
@@ -2477,14 +2477,14 @@
"typeString": "type(address)"
},
"typeName": {
"id": 51729,
"id": 51820,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "567:7:68",
"typeDescriptions": {}
}
},
"id": 51732,
"id": 51823,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2509,7 +2509,7 @@
}
],
"expression": {
"id": 51726,
"id": 51817,
"name": "console2",
"nodeType": "Identifier",
"overloadedDeclarations": [],
@@ -2520,7 +2520,7 @@
"typeString": "type(library console2)"
}
},
"id": 51728,
"id": 51819,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2535,7 +2535,7 @@
"typeString": "function (address) pure"
}
},
"id": 51733,
"id": 51824,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2551,7 +2551,7 @@
"typeString": "tuple()"
}
},
"id": 51734,
"id": 51825,
"nodeType": "ExpressionStatement",
"src": "554:28:68"
}
@@ -2564,29 +2564,29 @@
"name": "setUp",
"nameLocation": "333:5:68",
"parameters": {
"id": 51684,
"id": 51775,
"nodeType": "ParameterList",
"parameters": [],
"src": "338:2:68"
},
"returnParameters": {
"id": 51685,
"id": 51776,
"nodeType": "ParameterList",
"parameters": [],
"src": "348:0:68"
},
"scope": 51779,
"scope": 51870,
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "public"
},
{
"id": 51778,
"id": 51869,
"nodeType": "FunctionDefinition",
"src": "595:237:68",
"nodes": [],
"body": {
"id": 51777,
"id": 51868,
"nodeType": "Block",
"src": "643:189:68",
"nodes": [],
@@ -2597,11 +2597,11 @@
{
"arguments": [
{
"id": 51744,
"id": 51835,
"name": "vault",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 51683,
"referencedDeclaration": 51774,
"src": "674:5:68",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Vault_$49181",
@@ -2616,7 +2616,7 @@
"typeString": "contract Vault"
}
],
"id": 51743,
"id": 51834,
"isConstant": false,
"isLValue": false,
"isPure": true,
@@ -2628,14 +2628,14 @@
"typeString": "type(address)"
},
"typeName": {
"id": 51742,
"id": 51833,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "666:7:68",
"typeDescriptions": {}
}
},
"id": 51745,
"id": 51836,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2660,7 +2660,7 @@
}
],
"expression": {
"id": 51739,
"id": 51830,
"name": "console2",
"nodeType": "Identifier",
"overloadedDeclarations": [],
@@ -2671,7 +2671,7 @@
"typeString": "type(library console2)"
}
},
"id": 51741,
"id": 51832,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2686,7 +2686,7 @@
"typeString": "function (address) pure"
}
},
"id": 51746,
"id": 51837,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2702,23 +2702,23 @@
"typeString": "tuple()"
}
},
"id": 51747,
"id": 51838,
"nodeType": "ExpressionStatement",
"src": "653:28:68"
},
{
"assignments": [
51749
51840
],
"declarations": [
{
"constant": false,
"id": 51749,
"id": 51840,
"mutability": "mutable",
"name": "d",
"nameLocation": "699:1:68",
"nodeType": "VariableDeclaration",
"scope": 51777,
"scope": 51868,
"src": "691:9:68",
"stateVariable": false,
"storageLocation": "default",
@@ -2727,7 +2727,7 @@
"typeString": "address"
},
"typeName": {
"id": 51748,
"id": 51839,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "691:7:68",
@@ -2740,17 +2740,17 @@
"visibility": "internal"
}
],
"id": 51761,
"id": 51852,
"initialValue": {
"arguments": [
{
"arguments": [
{
"id": 51754,
"id": 51845,
"name": "factory",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 51680,
"referencedDeclaration": 51771,
"src": "739:7:68",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Factory_$46430",
@@ -2765,7 +2765,7 @@
"typeString": "contract Factory"
}
],
"id": 51753,
"id": 51844,
"isConstant": false,
"isLValue": false,
"isPure": true,
@@ -2777,14 +2777,14 @@
"typeString": "type(address)"
},
"typeName": {
"id": 51752,
"id": 51843,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "731:7:68",
"typeDescriptions": {}
}
},
"id": 51755,
"id": 51846,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2803,14 +2803,14 @@
{
"arguments": [
{
"id": 51758,
"id": 51849,
"name": "this",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": -28,
"src": "757:4:68",
"typeDescriptions": {
"typeIdentifier": "t_contract$_TestVault_$51779",
"typeIdentifier": "t_contract$_TestVault_$51870",
"typeString": "contract TestVault"
}
}
@@ -2818,11 +2818,11 @@
"expression": {
"argumentTypes": [
{
"typeIdentifier": "t_contract$_TestVault_$51779",
"typeIdentifier": "t_contract$_TestVault_$51870",
"typeString": "contract TestVault"
}
],
"id": 51757,
"id": 51848,
"isConstant": false,
"isLValue": false,
"isPure": true,
@@ -2834,14 +2834,14 @@
"typeString": "type(address)"
},
"typeName": {
"id": 51756,
"id": 51847,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "749:7:68",
"typeDescriptions": {}
}
},
"id": 51759,
"id": 51850,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2870,7 +2870,7 @@
}
],
"expression": {
"id": 51750,
"id": 51841,
"name": "VaultAddress",
"nodeType": "Identifier",
"overloadedDeclarations": [],
@@ -2881,7 +2881,7 @@
"typeString": "type(library VaultAddress)"
}
},
"id": 51751,
"id": 51842,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2896,7 +2896,7 @@
"typeString": "function (address,address) pure returns (address)"
}
},
"id": 51760,
"id": 51851,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2919,11 +2919,11 @@
"expression": {
"arguments": [
{
"id": 51765,
"id": 51856,
"name": "d",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 51749,
"referencedDeclaration": 51840,
"src": "786:1:68",
"typeDescriptions": {
"typeIdentifier": "t_address",
@@ -2939,7 +2939,7 @@
}
],
"expression": {
"id": 51762,
"id": 51853,
"name": "console2",
"nodeType": "Identifier",
"overloadedDeclarations": [],
@@ -2950,7 +2950,7 @@
"typeString": "type(library console2)"
}
},
"id": 51764,
"id": 51855,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2965,7 +2965,7 @@
"typeString": "function (address) pure"
}
},
"id": 51766,
"id": 51857,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -2981,7 +2981,7 @@
"typeString": "tuple()"
}
},
"id": 51767,
"id": 51858,
"nodeType": "ExpressionStatement",
"src": "773:15:68"
},
@@ -2993,7 +2993,7 @@
"typeIdentifier": "t_address",
"typeString": "address"
},
"id": 51774,
"id": 51865,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -3001,11 +3001,11 @@
"leftExpression": {
"arguments": [
{
"id": 51771,
"id": 51862,
"name": "vault",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 51683,
"referencedDeclaration": 51774,
"src": "813:5:68",
"typeDescriptions": {
"typeIdentifier": "t_contract$_Vault_$49181",
@@ -3020,7 +3020,7 @@
"typeString": "contract Vault"
}
],
"id": 51770,
"id": 51861,
"isConstant": false,
"isLValue": false,
"isPure": true,
@@ -3032,14 +3032,14 @@
"typeString": "type(address)"
},
"typeName": {
"id": 51769,
"id": 51860,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "805:7:68",
"typeDescriptions": {}
}
},
"id": 51772,
"id": 51863,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -3058,11 +3058,11 @@
"nodeType": "BinaryOperation",
"operator": "==",
"rightExpression": {
"id": 51773,
"id": 51864,
"name": "d",
"nodeType": "Identifier",
"overloadedDeclarations": [],
"referencedDeclaration": 51749,
"referencedDeclaration": 51840,
"src": "823:1:68",
"typeDescriptions": {
"typeIdentifier": "t_address",
@@ -3083,7 +3083,7 @@
"typeString": "bool"
}
],
"id": 51768,
"id": 51859,
"name": "assert",
"nodeType": "Identifier",
"overloadedDeclarations": [],
@@ -3094,7 +3094,7 @@
"typeString": "function (bool) pure"
}
},
"id": 51775,
"id": 51866,
"isConstant": false,
"isLValue": false,
"isPure": false,
@@ -3110,7 +3110,7 @@
"typeString": "tuple()"
}
},
"id": 51776,
"id": 51867,
"nodeType": "ExpressionStatement",
"src": "798:27:68"
}
@@ -3123,18 +3123,18 @@
"name": "testDeterministicAddress",
"nameLocation": "604:24:68",
"parameters": {
"id": 51737,
"id": 51828,
"nodeType": "ParameterList",
"parameters": [],
"src": "628:2:68"
},
"returnParameters": {
"id": 51738,
"id": 51829,
"nodeType": "ParameterList",
"parameters": [],
"src": "643:0:68"
},
"scope": 51779,
"scope": 51870,
"stateMutability": "view",
"virtual": false,
"visibility": "public"
@@ -3144,7 +3144,7 @@
"baseContracts": [
{
"baseName": {
"id": 51676,
"id": 51767,
"name": "Test",
"nameLocations": [
"259:4:68"
@@ -3153,7 +3153,7 @@
"referencedDeclaration": 11937,
"src": "259:4:68"
},
"id": 51677,
"id": 51768,
"nodeType": "InheritanceSpecifier",
"src": "259:4:68"
}
@@ -3168,7 +3168,7 @@
"21582": 1
},
"linearizedBaseContracts": [
51779,
51870,
11937,
2357,
2354,
@@ -3182,7 +3182,7 @@
],
"name": "TestVault",
"nameLocation": "246:9:68",
"scope": 51780,
"scope": 51871,
"usedErrors": [],
"usedEvents": [
5,