github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/pricegetter/priceprovider/abi/uniswap.abi (about)

     1  [
     2    {
     3      "inputs": [],
     4      "stateMutability": "nonpayable",
     5      "type": "constructor"
     6    },
     7    {
     8      "anonymous": false,
     9      "inputs": [
    10        {
    11          "indexed": true,
    12          "internalType": "address",
    13          "name": "owner",
    14          "type": "address"
    15        },
    16        {
    17          "indexed": true,
    18          "internalType": "int24",
    19          "name": "tickLower",
    20          "type": "int24"
    21        },
    22        {
    23          "indexed": true,
    24          "internalType": "int24",
    25          "name": "tickUpper",
    26          "type": "int24"
    27        },
    28        {
    29          "indexed": false,
    30          "internalType": "uint128",
    31          "name": "amount",
    32          "type": "uint128"
    33        },
    34        {
    35          "indexed": false,
    36          "internalType": "uint256",
    37          "name": "amount0",
    38          "type": "uint256"
    39        },
    40        {
    41          "indexed": false,
    42          "internalType": "uint256",
    43          "name": "amount1",
    44          "type": "uint256"
    45        }
    46      ],
    47      "name": "Burn",
    48      "type": "event"
    49    },
    50    {
    51      "anonymous": false,
    52      "inputs": [
    53        {
    54          "indexed": true,
    55          "internalType": "address",
    56          "name": "owner",
    57          "type": "address"
    58        },
    59        {
    60          "indexed": false,
    61          "internalType": "address",
    62          "name": "recipient",
    63          "type": "address"
    64        },
    65        {
    66          "indexed": true,
    67          "internalType": "int24",
    68          "name": "tickLower",
    69          "type": "int24"
    70        },
    71        {
    72          "indexed": true,
    73          "internalType": "int24",
    74          "name": "tickUpper",
    75          "type": "int24"
    76        },
    77        {
    78          "indexed": false,
    79          "internalType": "uint128",
    80          "name": "amount0",
    81          "type": "uint128"
    82        },
    83        {
    84          "indexed": false,
    85          "internalType": "uint128",
    86          "name": "amount1",
    87          "type": "uint128"
    88        }
    89      ],
    90      "name": "Collect",
    91      "type": "event"
    92    },
    93    {
    94      "anonymous": false,
    95      "inputs": [
    96        {
    97          "indexed": true,
    98          "internalType": "address",
    99          "name": "sender",
   100          "type": "address"
   101        },
   102        {
   103          "indexed": true,
   104          "internalType": "address",
   105          "name": "recipient",
   106          "type": "address"
   107        },
   108        {
   109          "indexed": false,
   110          "internalType": "uint128",
   111          "name": "amount0",
   112          "type": "uint128"
   113        },
   114        {
   115          "indexed": false,
   116          "internalType": "uint128",
   117          "name": "amount1",
   118          "type": "uint128"
   119        }
   120      ],
   121      "name": "CollectProtocol",
   122      "type": "event"
   123    },
   124    {
   125      "anonymous": false,
   126      "inputs": [
   127        {
   128          "indexed": true,
   129          "internalType": "address",
   130          "name": "sender",
   131          "type": "address"
   132        },
   133        {
   134          "indexed": true,
   135          "internalType": "address",
   136          "name": "recipient",
   137          "type": "address"
   138        },
   139        {
   140          "indexed": false,
   141          "internalType": "uint256",
   142          "name": "amount0",
   143          "type": "uint256"
   144        },
   145        {
   146          "indexed": false,
   147          "internalType": "uint256",
   148          "name": "amount1",
   149          "type": "uint256"
   150        },
   151        {
   152          "indexed": false,
   153          "internalType": "uint256",
   154          "name": "paid0",
   155          "type": "uint256"
   156        },
   157        {
   158          "indexed": false,
   159          "internalType": "uint256",
   160          "name": "paid1",
   161          "type": "uint256"
   162        }
   163      ],
   164      "name": "Flash",
   165      "type": "event"
   166    },
   167    {
   168      "anonymous": false,
   169      "inputs": [
   170        {
   171          "indexed": false,
   172          "internalType": "uint16",
   173          "name": "observationCardinalityNextOld",
   174          "type": "uint16"
   175        },
   176        {
   177          "indexed": false,
   178          "internalType": "uint16",
   179          "name": "observationCardinalityNextNew",
   180          "type": "uint16"
   181        }
   182      ],
   183      "name": "IncreaseObservationCardinalityNext",
   184      "type": "event"
   185    },
   186    {
   187      "anonymous": false,
   188      "inputs": [
   189        {
   190          "indexed": false,
   191          "internalType": "uint160",
   192          "name": "sqrtPriceX96",
   193          "type": "uint160"
   194        },
   195        {
   196          "indexed": false,
   197          "internalType": "int24",
   198          "name": "tick",
   199          "type": "int24"
   200        }
   201      ],
   202      "name": "Initialize",
   203      "type": "event"
   204    },
   205    {
   206      "anonymous": false,
   207      "inputs": [
   208        {
   209          "indexed": false,
   210          "internalType": "address",
   211          "name": "sender",
   212          "type": "address"
   213        },
   214        {
   215          "indexed": true,
   216          "internalType": "address",
   217          "name": "owner",
   218          "type": "address"
   219        },
   220        {
   221          "indexed": true,
   222          "internalType": "int24",
   223          "name": "tickLower",
   224          "type": "int24"
   225        },
   226        {
   227          "indexed": true,
   228          "internalType": "int24",
   229          "name": "tickUpper",
   230          "type": "int24"
   231        },
   232        {
   233          "indexed": false,
   234          "internalType": "uint128",
   235          "name": "amount",
   236          "type": "uint128"
   237        },
   238        {
   239          "indexed": false,
   240          "internalType": "uint256",
   241          "name": "amount0",
   242          "type": "uint256"
   243        },
   244        {
   245          "indexed": false,
   246          "internalType": "uint256",
   247          "name": "amount1",
   248          "type": "uint256"
   249        }
   250      ],
   251      "name": "Mint",
   252      "type": "event"
   253    },
   254    {
   255      "anonymous": false,
   256      "inputs": [
   257        {
   258          "indexed": false,
   259          "internalType": "uint8",
   260          "name": "feeProtocol0Old",
   261          "type": "uint8"
   262        },
   263        {
   264          "indexed": false,
   265          "internalType": "uint8",
   266          "name": "feeProtocol1Old",
   267          "type": "uint8"
   268        },
   269        {
   270          "indexed": false,
   271          "internalType": "uint8",
   272          "name": "feeProtocol0New",
   273          "type": "uint8"
   274        },
   275        {
   276          "indexed": false,
   277          "internalType": "uint8",
   278          "name": "feeProtocol1New",
   279          "type": "uint8"
   280        }
   281      ],
   282      "name": "SetFeeProtocol",
   283      "type": "event"
   284    },
   285    {
   286      "anonymous": false,
   287      "inputs": [
   288        {
   289          "indexed": true,
   290          "internalType": "address",
   291          "name": "sender",
   292          "type": "address"
   293        },
   294        {
   295          "indexed": true,
   296          "internalType": "address",
   297          "name": "recipient",
   298          "type": "address"
   299        },
   300        {
   301          "indexed": false,
   302          "internalType": "int256",
   303          "name": "amount0",
   304          "type": "int256"
   305        },
   306        {
   307          "indexed": false,
   308          "internalType": "int256",
   309          "name": "amount1",
   310          "type": "int256"
   311        },
   312        {
   313          "indexed": false,
   314          "internalType": "uint160",
   315          "name": "sqrtPriceX96",
   316          "type": "uint160"
   317        },
   318        {
   319          "indexed": false,
   320          "internalType": "uint128",
   321          "name": "liquidity",
   322          "type": "uint128"
   323        },
   324        {
   325          "indexed": false,
   326          "internalType": "int24",
   327          "name": "tick",
   328          "type": "int24"
   329        }
   330      ],
   331      "name": "Swap",
   332      "type": "event"
   333    },
   334    {
   335      "inputs": [
   336        {
   337          "internalType": "int24",
   338          "name": "tickLower",
   339          "type": "int24"
   340        },
   341        {
   342          "internalType": "int24",
   343          "name": "tickUpper",
   344          "type": "int24"
   345        },
   346        {
   347          "internalType": "uint128",
   348          "name": "amount",
   349          "type": "uint128"
   350        }
   351      ],
   352      "name": "burn",
   353      "outputs": [
   354        {
   355          "internalType": "uint256",
   356          "name": "amount0",
   357          "type": "uint256"
   358        },
   359        {
   360          "internalType": "uint256",
   361          "name": "amount1",
   362          "type": "uint256"
   363        }
   364      ],
   365      "stateMutability": "nonpayable",
   366      "type": "function"
   367    },
   368    {
   369      "inputs": [
   370        {
   371          "internalType": "address",
   372          "name": "recipient",
   373          "type": "address"
   374        },
   375        {
   376          "internalType": "int24",
   377          "name": "tickLower",
   378          "type": "int24"
   379        },
   380        {
   381          "internalType": "int24",
   382          "name": "tickUpper",
   383          "type": "int24"
   384        },
   385        {
   386          "internalType": "uint128",
   387          "name": "amount0Requested",
   388          "type": "uint128"
   389        },
   390        {
   391          "internalType": "uint128",
   392          "name": "amount1Requested",
   393          "type": "uint128"
   394        }
   395      ],
   396      "name": "collect",
   397      "outputs": [
   398        {
   399          "internalType": "uint128",
   400          "name": "amount0",
   401          "type": "uint128"
   402        },
   403        {
   404          "internalType": "uint128",
   405          "name": "amount1",
   406          "type": "uint128"
   407        }
   408      ],
   409      "stateMutability": "nonpayable",
   410      "type": "function"
   411    },
   412    {
   413      "inputs": [
   414        {
   415          "internalType": "address",
   416          "name": "recipient",
   417          "type": "address"
   418        },
   419        {
   420          "internalType": "uint128",
   421          "name": "amount0Requested",
   422          "type": "uint128"
   423        },
   424        {
   425          "internalType": "uint128",
   426          "name": "amount1Requested",
   427          "type": "uint128"
   428        }
   429      ],
   430      "name": "collectProtocol",
   431      "outputs": [
   432        {
   433          "internalType": "uint128",
   434          "name": "amount0",
   435          "type": "uint128"
   436        },
   437        {
   438          "internalType": "uint128",
   439          "name": "amount1",
   440          "type": "uint128"
   441        }
   442      ],
   443      "stateMutability": "nonpayable",
   444      "type": "function"
   445    },
   446    {
   447      "inputs": [],
   448      "name": "factory",
   449      "outputs": [
   450        {
   451          "internalType": "address",
   452          "name": "",
   453          "type": "address"
   454        }
   455      ],
   456      "stateMutability": "view",
   457      "type": "function"
   458    },
   459    {
   460      "inputs": [],
   461      "name": "fee",
   462      "outputs": [
   463        {
   464          "internalType": "uint24",
   465          "name": "",
   466          "type": "uint24"
   467        }
   468      ],
   469      "stateMutability": "view",
   470      "type": "function"
   471    },
   472    {
   473      "inputs": [],
   474      "name": "feeGrowthGlobal0X128",
   475      "outputs": [
   476        {
   477          "internalType": "uint256",
   478          "name": "",
   479          "type": "uint256"
   480        }
   481      ],
   482      "stateMutability": "view",
   483      "type": "function"
   484    },
   485    {
   486      "inputs": [],
   487      "name": "feeGrowthGlobal1X128",
   488      "outputs": [
   489        {
   490          "internalType": "uint256",
   491          "name": "",
   492          "type": "uint256"
   493        }
   494      ],
   495      "stateMutability": "view",
   496      "type": "function"
   497    },
   498    {
   499      "inputs": [
   500        {
   501          "internalType": "address",
   502          "name": "recipient",
   503          "type": "address"
   504        },
   505        {
   506          "internalType": "uint256",
   507          "name": "amount0",
   508          "type": "uint256"
   509        },
   510        {
   511          "internalType": "uint256",
   512          "name": "amount1",
   513          "type": "uint256"
   514        },
   515        {
   516          "internalType": "bytes",
   517          "name": "data",
   518          "type": "bytes"
   519        }
   520      ],
   521      "name": "flash",
   522      "outputs": [],
   523      "stateMutability": "nonpayable",
   524      "type": "function"
   525    },
   526    {
   527      "inputs": [
   528        {
   529          "internalType": "uint16",
   530          "name": "observationCardinalityNext",
   531          "type": "uint16"
   532        }
   533      ],
   534      "name": "increaseObservationCardinalityNext",
   535      "outputs": [],
   536      "stateMutability": "nonpayable",
   537      "type": "function"
   538    },
   539    {
   540      "inputs": [
   541        {
   542          "internalType": "uint160",
   543          "name": "sqrtPriceX96",
   544          "type": "uint160"
   545        }
   546      ],
   547      "name": "initialize",
   548      "outputs": [],
   549      "stateMutability": "nonpayable",
   550      "type": "function"
   551    },
   552    {
   553      "inputs": [],
   554      "name": "liquidity",
   555      "outputs": [
   556        {
   557          "internalType": "uint128",
   558          "name": "",
   559          "type": "uint128"
   560        }
   561      ],
   562      "stateMutability": "view",
   563      "type": "function"
   564    },
   565    {
   566      "inputs": [],
   567      "name": "maxLiquidityPerTick",
   568      "outputs": [
   569        {
   570          "internalType": "uint128",
   571          "name": "",
   572          "type": "uint128"
   573        }
   574      ],
   575      "stateMutability": "view",
   576      "type": "function"
   577    },
   578    {
   579      "inputs": [
   580        {
   581          "internalType": "address",
   582          "name": "recipient",
   583          "type": "address"
   584        },
   585        {
   586          "internalType": "int24",
   587          "name": "tickLower",
   588          "type": "int24"
   589        },
   590        {
   591          "internalType": "int24",
   592          "name": "tickUpper",
   593          "type": "int24"
   594        },
   595        {
   596          "internalType": "uint128",
   597          "name": "amount",
   598          "type": "uint128"
   599        },
   600        {
   601          "internalType": "bytes",
   602          "name": "data",
   603          "type": "bytes"
   604        }
   605      ],
   606      "name": "mint",
   607      "outputs": [
   608        {
   609          "internalType": "uint256",
   610          "name": "amount0",
   611          "type": "uint256"
   612        },
   613        {
   614          "internalType": "uint256",
   615          "name": "amount1",
   616          "type": "uint256"
   617        }
   618      ],
   619      "stateMutability": "nonpayable",
   620      "type": "function"
   621    },
   622    {
   623      "inputs": [
   624        {
   625          "internalType": "uint256",
   626          "name": "",
   627          "type": "uint256"
   628        }
   629      ],
   630      "name": "observations",
   631      "outputs": [
   632        {
   633          "internalType": "uint32",
   634          "name": "blockTimestamp",
   635          "type": "uint32"
   636        },
   637        {
   638          "internalType": "int56",
   639          "name": "tickCumulative",
   640          "type": "int56"
   641        },
   642        {
   643          "internalType": "uint160",
   644          "name": "secondsPerLiquidityCumulativeX128",
   645          "type": "uint160"
   646        },
   647        {
   648          "internalType": "bool",
   649          "name": "initialized",
   650          "type": "bool"
   651        }
   652      ],
   653      "stateMutability": "view",
   654      "type": "function"
   655    },
   656    {
   657      "inputs": [
   658        {
   659          "internalType": "uint32[]",
   660          "name": "secondsAgos",
   661          "type": "uint32[]"
   662        }
   663      ],
   664      "name": "observe",
   665      "outputs": [
   666        {
   667          "internalType": "int56[]",
   668          "name": "tickCumulatives",
   669          "type": "int56[]"
   670        },
   671        {
   672          "internalType": "uint160[]",
   673          "name": "secondsPerLiquidityCumulativeX128s",
   674          "type": "uint160[]"
   675        }
   676      ],
   677      "stateMutability": "view",
   678      "type": "function"
   679    },
   680    {
   681      "inputs": [
   682        {
   683          "internalType": "bytes32",
   684          "name": "",
   685          "type": "bytes32"
   686        }
   687      ],
   688      "name": "positions",
   689      "outputs": [
   690        {
   691          "internalType": "uint128",
   692          "name": "liquidity",
   693          "type": "uint128"
   694        },
   695        {
   696          "internalType": "uint256",
   697          "name": "feeGrowthInside0LastX128",
   698          "type": "uint256"
   699        },
   700        {
   701          "internalType": "uint256",
   702          "name": "feeGrowthInside1LastX128",
   703          "type": "uint256"
   704        },
   705        {
   706          "internalType": "uint128",
   707          "name": "tokensOwed0",
   708          "type": "uint128"
   709        },
   710        {
   711          "internalType": "uint128",
   712          "name": "tokensOwed1",
   713          "type": "uint128"
   714        }
   715      ],
   716      "stateMutability": "view",
   717      "type": "function"
   718    },
   719    {
   720      "inputs": [],
   721      "name": "protocolFees",
   722      "outputs": [
   723        {
   724          "internalType": "uint128",
   725          "name": "token0",
   726          "type": "uint128"
   727        },
   728        {
   729          "internalType": "uint128",
   730          "name": "token1",
   731          "type": "uint128"
   732        }
   733      ],
   734      "stateMutability": "view",
   735      "type": "function"
   736    },
   737    {
   738      "inputs": [
   739        {
   740          "internalType": "uint8",
   741          "name": "feeProtocol0",
   742          "type": "uint8"
   743        },
   744        {
   745          "internalType": "uint8",
   746          "name": "feeProtocol1",
   747          "type": "uint8"
   748        }
   749      ],
   750      "name": "setFeeProtocol",
   751      "outputs": [],
   752      "stateMutability": "nonpayable",
   753      "type": "function"
   754    },
   755    {
   756      "inputs": [],
   757      "name": "slot0",
   758      "outputs": [
   759        {
   760          "internalType": "uint160",
   761          "name": "sqrtPriceX96",
   762          "type": "uint160"
   763        },
   764        {
   765          "internalType": "int24",
   766          "name": "tick",
   767          "type": "int24"
   768        },
   769        {
   770          "internalType": "uint16",
   771          "name": "observationIndex",
   772          "type": "uint16"
   773        },
   774        {
   775          "internalType": "uint16",
   776          "name": "observationCardinality",
   777          "type": "uint16"
   778        },
   779        {
   780          "internalType": "uint16",
   781          "name": "observationCardinalityNext",
   782          "type": "uint16"
   783        },
   784        {
   785          "internalType": "uint8",
   786          "name": "feeProtocol",
   787          "type": "uint8"
   788        },
   789        {
   790          "internalType": "bool",
   791          "name": "unlocked",
   792          "type": "bool"
   793        }
   794      ],
   795      "stateMutability": "view",
   796      "type": "function"
   797    },
   798    {
   799      "inputs": [
   800        {
   801          "internalType": "int24",
   802          "name": "tickLower",
   803          "type": "int24"
   804        },
   805        {
   806          "internalType": "int24",
   807          "name": "tickUpper",
   808          "type": "int24"
   809        }
   810      ],
   811      "name": "snapshotCumulativesInside",
   812      "outputs": [
   813        {
   814          "internalType": "int56",
   815          "name": "tickCumulativeInside",
   816          "type": "int56"
   817        },
   818        {
   819          "internalType": "uint160",
   820          "name": "secondsPerLiquidityInsideX128",
   821          "type": "uint160"
   822        },
   823        {
   824          "internalType": "uint32",
   825          "name": "secondsInside",
   826          "type": "uint32"
   827        }
   828      ],
   829      "stateMutability": "view",
   830      "type": "function"
   831    },
   832    {
   833      "inputs": [
   834        {
   835          "internalType": "address",
   836          "name": "recipient",
   837          "type": "address"
   838        },
   839        {
   840          "internalType": "bool",
   841          "name": "zeroForOne",
   842          "type": "bool"
   843        },
   844        {
   845          "internalType": "int256",
   846          "name": "amountSpecified",
   847          "type": "int256"
   848        },
   849        {
   850          "internalType": "uint160",
   851          "name": "sqrtPriceLimitX96",
   852          "type": "uint160"
   853        },
   854        {
   855          "internalType": "bytes",
   856          "name": "data",
   857          "type": "bytes"
   858        }
   859      ],
   860      "name": "swap",
   861      "outputs": [
   862        {
   863          "internalType": "int256",
   864          "name": "amount0",
   865          "type": "int256"
   866        },
   867        {
   868          "internalType": "int256",
   869          "name": "amount1",
   870          "type": "int256"
   871        }
   872      ],
   873      "stateMutability": "nonpayable",
   874      "type": "function"
   875    },
   876    {
   877      "inputs": [
   878        {
   879          "internalType": "int16",
   880          "name": "",
   881          "type": "int16"
   882        }
   883      ],
   884      "name": "tickBitmap",
   885      "outputs": [
   886        {
   887          "internalType": "uint256",
   888          "name": "",
   889          "type": "uint256"
   890        }
   891      ],
   892      "stateMutability": "view",
   893      "type": "function"
   894    },
   895    {
   896      "inputs": [],
   897      "name": "tickSpacing",
   898      "outputs": [
   899        {
   900          "internalType": "int24",
   901          "name": "",
   902          "type": "int24"
   903        }
   904      ],
   905      "stateMutability": "view",
   906      "type": "function"
   907    },
   908    {
   909      "inputs": [
   910        {
   911          "internalType": "int24",
   912          "name": "",
   913          "type": "int24"
   914        }
   915      ],
   916      "name": "ticks",
   917      "outputs": [
   918        {
   919          "internalType": "uint128",
   920          "name": "liquidityGross",
   921          "type": "uint128"
   922        },
   923        {
   924          "internalType": "int128",
   925          "name": "liquidityNet",
   926          "type": "int128"
   927        },
   928        {
   929          "internalType": "uint256",
   930          "name": "feeGrowthOutside0X128",
   931          "type": "uint256"
   932        },
   933        {
   934          "internalType": "uint256",
   935          "name": "feeGrowthOutside1X128",
   936          "type": "uint256"
   937        },
   938        {
   939          "internalType": "int56",
   940          "name": "tickCumulativeOutside",
   941          "type": "int56"
   942        },
   943        {
   944          "internalType": "uint160",
   945          "name": "secondsPerLiquidityOutsideX128",
   946          "type": "uint160"
   947        },
   948        {
   949          "internalType": "uint32",
   950          "name": "secondsOutside",
   951          "type": "uint32"
   952        },
   953        {
   954          "internalType": "bool",
   955          "name": "initialized",
   956          "type": "bool"
   957        }
   958      ],
   959      "stateMutability": "view",
   960      "type": "function"
   961    },
   962    {
   963      "inputs": [],
   964      "name": "token0",
   965      "outputs": [
   966        {
   967          "internalType": "address",
   968          "name": "",
   969          "type": "address"
   970        }
   971      ],
   972      "stateMutability": "view",
   973      "type": "function"
   974    },
   975    {
   976      "inputs": [],
   977      "name": "token1",
   978      "outputs": [
   979        {
   980          "internalType": "address",
   981          "name": "",
   982          "type": "address"
   983        }
   984      ],
   985      "stateMutability": "view",
   986      "type": "function"
   987    }
   988  ]