github.com/diadata-org/diadata@v1.4.593/pkg/dia/scraper/exchange-scrapers/maverick/pool/pool.abi (about)

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