github.com/diadata-org/diadata@v1.4.593/pkg/dia/scraper/exchange-scrapers/traderjoe2.1/traderjoeILBPair/ILBPair.json (about)

     1  [
     2    {
     3      "inputs": [],
     4      "name": "LBPair__AddressZero",
     5      "type": "error"
     6    },
     7    {
     8      "inputs": [],
     9      "name": "LBPair__AlreadyInitialized",
    10      "type": "error"
    11    },
    12    {
    13      "inputs": [],
    14      "name": "LBPair__EmptyMarketConfigs",
    15      "type": "error"
    16    },
    17    {
    18      "inputs": [],
    19      "name": "LBPair__FlashLoanCallbackFailed",
    20      "type": "error"
    21    },
    22    {
    23      "inputs": [],
    24      "name": "LBPair__FlashLoanInsufficientAmount",
    25      "type": "error"
    26    },
    27    {
    28      "inputs": [],
    29      "name": "LBPair__InsufficientAmountIn",
    30      "type": "error"
    31    },
    32    {
    33      "inputs": [],
    34      "name": "LBPair__InsufficientAmountOut",
    35      "type": "error"
    36    },
    37    {
    38      "inputs": [],
    39      "name": "LBPair__InvalidInput",
    40      "type": "error"
    41    },
    42    {
    43      "inputs": [],
    44      "name": "LBPair__InvalidStaticFeeParameters",
    45      "type": "error"
    46    },
    47    {
    48      "inputs": [],
    49      "name": "LBPair__MaxTotalFeeExceeded",
    50      "type": "error"
    51    },
    52    {
    53      "inputs": [],
    54      "name": "LBPair__OnlyFactory",
    55      "type": "error"
    56    },
    57    {
    58      "inputs": [],
    59      "name": "LBPair__OnlyProtocolFeeRecipient",
    60      "type": "error"
    61    },
    62    {
    63      "inputs": [],
    64      "name": "LBPair__OutOfLiquidity",
    65      "type": "error"
    66    },
    67    {
    68      "inputs": [],
    69      "name": "LBPair__TokenNotSupported",
    70      "type": "error"
    71    },
    72    {
    73      "inputs": [
    74        {
    75          "internalType": "uint24",
    76          "name": "id",
    77          "type": "uint24"
    78        }
    79      ],
    80      "name": "LBPair__ZeroAmount",
    81      "type": "error"
    82    },
    83    {
    84      "inputs": [
    85        {
    86          "internalType": "uint24",
    87          "name": "id",
    88          "type": "uint24"
    89        }
    90      ],
    91      "name": "LBPair__ZeroAmountsOut",
    92      "type": "error"
    93    },
    94    {
    95      "inputs": [],
    96      "name": "LBPair__ZeroBorrowAmount",
    97      "type": "error"
    98    },
    99    {
   100      "inputs": [
   101        {
   102          "internalType": "uint24",
   103          "name": "id",
   104          "type": "uint24"
   105        }
   106      ],
   107      "name": "LBPair__ZeroShares",
   108      "type": "error"
   109    },
   110    {
   111      "inputs": [],
   112      "name": "LBToken__AddressThisOrZero",
   113      "type": "error"
   114    },
   115    {
   116      "inputs": [
   117        {
   118          "internalType": "address",
   119          "name": "from",
   120          "type": "address"
   121        },
   122        {
   123          "internalType": "uint256",
   124          "name": "id",
   125          "type": "uint256"
   126        },
   127        {
   128          "internalType": "uint256",
   129          "name": "amount",
   130          "type": "uint256"
   131        }
   132      ],
   133      "name": "LBToken__BurnExceedsBalance",
   134      "type": "error"
   135    },
   136    {
   137      "inputs": [],
   138      "name": "LBToken__InvalidLength",
   139      "type": "error"
   140    },
   141    {
   142      "inputs": [
   143        {
   144          "internalType": "address",
   145          "name": "owner",
   146          "type": "address"
   147        }
   148      ],
   149      "name": "LBToken__SelfApproval",
   150      "type": "error"
   151    },
   152    {
   153      "inputs": [
   154        {
   155          "internalType": "address",
   156          "name": "from",
   157          "type": "address"
   158        },
   159        {
   160          "internalType": "address",
   161          "name": "spender",
   162          "type": "address"
   163        }
   164      ],
   165      "name": "LBToken__SpenderNotApproved",
   166      "type": "error"
   167    },
   168    {
   169      "inputs": [
   170        {
   171          "internalType": "address",
   172          "name": "from",
   173          "type": "address"
   174        },
   175        {
   176          "internalType": "uint256",
   177          "name": "id",
   178          "type": "uint256"
   179        },
   180        {
   181          "internalType": "uint256",
   182          "name": "amount",
   183          "type": "uint256"
   184        }
   185      ],
   186      "name": "LBToken__TransferExceedsBalance",
   187      "type": "error"
   188    },
   189    {
   190      "anonymous": false,
   191      "inputs": [
   192        {
   193          "indexed": true,
   194          "internalType": "address",
   195          "name": "account",
   196          "type": "address"
   197        },
   198        {
   199          "indexed": true,
   200          "internalType": "address",
   201          "name": "sender",
   202          "type": "address"
   203        },
   204        {
   205          "indexed": false,
   206          "internalType": "bool",
   207          "name": "approved",
   208          "type": "bool"
   209        }
   210      ],
   211      "name": "ApprovalForAll",
   212      "type": "event"
   213    },
   214    {
   215      "anonymous": false,
   216      "inputs": [
   217        {
   218          "indexed": true,
   219          "internalType": "address",
   220          "name": "feeRecipient",
   221          "type": "address"
   222        },
   223        {
   224          "indexed": false,
   225          "internalType": "bytes32",
   226          "name": "protocolFees",
   227          "type": "bytes32"
   228        }
   229      ],
   230      "name": "CollectedProtocolFees",
   231      "type": "event"
   232    },
   233    {
   234      "anonymous": false,
   235      "inputs": [
   236        {
   237          "indexed": true,
   238          "internalType": "address",
   239          "name": "sender",
   240          "type": "address"
   241        },
   242        {
   243          "indexed": false,
   244          "internalType": "uint24",
   245          "name": "id",
   246          "type": "uint24"
   247        },
   248        {
   249          "indexed": false,
   250          "internalType": "bytes32",
   251          "name": "totalFees",
   252          "type": "bytes32"
   253        },
   254        {
   255          "indexed": false,
   256          "internalType": "bytes32",
   257          "name": "protocolFees",
   258          "type": "bytes32"
   259        }
   260      ],
   261      "name": "CompositionFees",
   262      "type": "event"
   263    },
   264    {
   265      "anonymous": false,
   266      "inputs": [
   267        {
   268          "indexed": true,
   269          "internalType": "address",
   270          "name": "sender",
   271          "type": "address"
   272        },
   273        {
   274          "indexed": true,
   275          "internalType": "address",
   276          "name": "to",
   277          "type": "address"
   278        },
   279        {
   280          "indexed": false,
   281          "internalType": "uint256[]",
   282          "name": "ids",
   283          "type": "uint256[]"
   284        },
   285        {
   286          "indexed": false,
   287          "internalType": "bytes32[]",
   288          "name": "amounts",
   289          "type": "bytes32[]"
   290        }
   291      ],
   292      "name": "DepositedToBins",
   293      "type": "event"
   294    },
   295    {
   296      "anonymous": false,
   297      "inputs": [
   298        {
   299          "indexed": true,
   300          "internalType": "address",
   301          "name": "sender",
   302          "type": "address"
   303        },
   304        {
   305          "indexed": true,
   306          "internalType": "contract ILBFlashLoanCallback",
   307          "name": "receiver",
   308          "type": "address"
   309        },
   310        {
   311          "indexed": false,
   312          "internalType": "uint24",
   313          "name": "activeId",
   314          "type": "uint24"
   315        },
   316        {
   317          "indexed": false,
   318          "internalType": "bytes32",
   319          "name": "amounts",
   320          "type": "bytes32"
   321        },
   322        {
   323          "indexed": false,
   324          "internalType": "bytes32",
   325          "name": "totalFees",
   326          "type": "bytes32"
   327        },
   328        {
   329          "indexed": false,
   330          "internalType": "bytes32",
   331          "name": "protocolFees",
   332          "type": "bytes32"
   333        }
   334      ],
   335      "name": "FlashLoan",
   336      "type": "event"
   337    },
   338    {
   339      "anonymous": false,
   340      "inputs": [
   341        {
   342          "indexed": true,
   343          "internalType": "address",
   344          "name": "sender",
   345          "type": "address"
   346        },
   347        {
   348          "indexed": false,
   349          "internalType": "uint24",
   350          "name": "idReference",
   351          "type": "uint24"
   352        },
   353        {
   354          "indexed": false,
   355          "internalType": "uint24",
   356          "name": "volatilityReference",
   357          "type": "uint24"
   358        }
   359      ],
   360      "name": "ForcedDecay",
   361      "type": "event"
   362    },
   363    {
   364      "anonymous": false,
   365      "inputs": [
   366        {
   367          "indexed": true,
   368          "internalType": "address",
   369          "name": "sender",
   370          "type": "address"
   371        },
   372        {
   373          "indexed": false,
   374          "internalType": "uint16",
   375          "name": "oracleLength",
   376          "type": "uint16"
   377        }
   378      ],
   379      "name": "OracleLengthIncreased",
   380      "type": "event"
   381    },
   382    {
   383      "anonymous": false,
   384      "inputs": [
   385        {
   386          "indexed": true,
   387          "internalType": "address",
   388          "name": "sender",
   389          "type": "address"
   390        },
   391        {
   392          "indexed": false,
   393          "internalType": "uint16",
   394          "name": "baseFactor",
   395          "type": "uint16"
   396        },
   397        {
   398          "indexed": false,
   399          "internalType": "uint16",
   400          "name": "filterPeriod",
   401          "type": "uint16"
   402        },
   403        {
   404          "indexed": false,
   405          "internalType": "uint16",
   406          "name": "decayPeriod",
   407          "type": "uint16"
   408        },
   409        {
   410          "indexed": false,
   411          "internalType": "uint16",
   412          "name": "reductionFactor",
   413          "type": "uint16"
   414        },
   415        {
   416          "indexed": false,
   417          "internalType": "uint24",
   418          "name": "variableFeeControl",
   419          "type": "uint24"
   420        },
   421        {
   422          "indexed": false,
   423          "internalType": "uint16",
   424          "name": "protocolShare",
   425          "type": "uint16"
   426        },
   427        {
   428          "indexed": false,
   429          "internalType": "uint24",
   430          "name": "maxVolatilityAccumulator",
   431          "type": "uint24"
   432        }
   433      ],
   434      "name": "StaticFeeParametersSet",
   435      "type": "event"
   436    },
   437    {
   438      "anonymous": false,
   439      "inputs": [
   440        {
   441          "indexed": true,
   442          "internalType": "address",
   443          "name": "sender",
   444          "type": "address"
   445        },
   446        {
   447          "indexed": true,
   448          "internalType": "address",
   449          "name": "to",
   450          "type": "address"
   451        },
   452        {
   453          "indexed": false,
   454          "internalType": "uint24",
   455          "name": "id",
   456          "type": "uint24"
   457        },
   458        {
   459          "indexed": false,
   460          "internalType": "bytes32",
   461          "name": "amountsIn",
   462          "type": "bytes32"
   463        },
   464        {
   465          "indexed": false,
   466          "internalType": "bytes32",
   467          "name": "amountsOut",
   468          "type": "bytes32"
   469        },
   470        {
   471          "indexed": false,
   472          "internalType": "uint24",
   473          "name": "volatilityAccumulator",
   474          "type": "uint24"
   475        },
   476        {
   477          "indexed": false,
   478          "internalType": "bytes32",
   479          "name": "totalFees",
   480          "type": "bytes32"
   481        },
   482        {
   483          "indexed": false,
   484          "internalType": "bytes32",
   485          "name": "protocolFees",
   486          "type": "bytes32"
   487        }
   488      ],
   489      "name": "Swap",
   490      "type": "event"
   491    },
   492    {
   493      "anonymous": false,
   494      "inputs": [
   495        {
   496          "indexed": true,
   497          "internalType": "address",
   498          "name": "sender",
   499          "type": "address"
   500        },
   501        {
   502          "indexed": true,
   503          "internalType": "address",
   504          "name": "from",
   505          "type": "address"
   506        },
   507        {
   508          "indexed": true,
   509          "internalType": "address",
   510          "name": "to",
   511          "type": "address"
   512        },
   513        {
   514          "indexed": false,
   515          "internalType": "uint256[]",
   516          "name": "ids",
   517          "type": "uint256[]"
   518        },
   519        {
   520          "indexed": false,
   521          "internalType": "uint256[]",
   522          "name": "amounts",
   523          "type": "uint256[]"
   524        }
   525      ],
   526      "name": "TransferBatch",
   527      "type": "event"
   528    },
   529    {
   530      "anonymous": false,
   531      "inputs": [
   532        {
   533          "indexed": true,
   534          "internalType": "address",
   535          "name": "sender",
   536          "type": "address"
   537        },
   538        {
   539          "indexed": true,
   540          "internalType": "address",
   541          "name": "to",
   542          "type": "address"
   543        },
   544        {
   545          "indexed": false,
   546          "internalType": "uint256[]",
   547          "name": "ids",
   548          "type": "uint256[]"
   549        },
   550        {
   551          "indexed": false,
   552          "internalType": "bytes32[]",
   553          "name": "amounts",
   554          "type": "bytes32[]"
   555        }
   556      ],
   557      "name": "WithdrawnFromBins",
   558      "type": "event"
   559    },
   560    {
   561      "inputs": [
   562        {
   563          "internalType": "address",
   564          "name": "spender",
   565          "type": "address"
   566        },
   567        {
   568          "internalType": "bool",
   569          "name": "approved",
   570          "type": "bool"
   571        }
   572      ],
   573      "name": "approveForAll",
   574      "outputs": [],
   575      "stateMutability": "nonpayable",
   576      "type": "function"
   577    },
   578    {
   579      "inputs": [
   580        {
   581          "internalType": "address",
   582          "name": "account",
   583          "type": "address"
   584        },
   585        {
   586          "internalType": "uint256",
   587          "name": "id",
   588          "type": "uint256"
   589        }
   590      ],
   591      "name": "balanceOf",
   592      "outputs": [
   593        {
   594          "internalType": "uint256",
   595          "name": "",
   596          "type": "uint256"
   597        }
   598      ],
   599      "stateMutability": "view",
   600      "type": "function"
   601    },
   602    {
   603      "inputs": [
   604        {
   605          "internalType": "address[]",
   606          "name": "accounts",
   607          "type": "address[]"
   608        },
   609        {
   610          "internalType": "uint256[]",
   611          "name": "ids",
   612          "type": "uint256[]"
   613        }
   614      ],
   615      "name": "balanceOfBatch",
   616      "outputs": [
   617        {
   618          "internalType": "uint256[]",
   619          "name": "",
   620          "type": "uint256[]"
   621        }
   622      ],
   623      "stateMutability": "view",
   624      "type": "function"
   625    },
   626    {
   627      "inputs": [
   628        {
   629          "internalType": "address",
   630          "name": "from",
   631          "type": "address"
   632        },
   633        {
   634          "internalType": "address",
   635          "name": "to",
   636          "type": "address"
   637        },
   638        {
   639          "internalType": "uint256[]",
   640          "name": "ids",
   641          "type": "uint256[]"
   642        },
   643        {
   644          "internalType": "uint256[]",
   645          "name": "amounts",
   646          "type": "uint256[]"
   647        }
   648      ],
   649      "name": "batchTransferFrom",
   650      "outputs": [],
   651      "stateMutability": "nonpayable",
   652      "type": "function"
   653    },
   654    {
   655      "inputs": [
   656        {
   657          "internalType": "address",
   658          "name": "from",
   659          "type": "address"
   660        },
   661        {
   662          "internalType": "address",
   663          "name": "to",
   664          "type": "address"
   665        },
   666        {
   667          "internalType": "uint256[]",
   668          "name": "ids",
   669          "type": "uint256[]"
   670        },
   671        {
   672          "internalType": "uint256[]",
   673          "name": "amountsToBurn",
   674          "type": "uint256[]"
   675        }
   676      ],
   677      "name": "burn",
   678      "outputs": [
   679        {
   680          "internalType": "bytes32[]",
   681          "name": "amounts",
   682          "type": "bytes32[]"
   683        }
   684      ],
   685      "stateMutability": "nonpayable",
   686      "type": "function"
   687    },
   688    {
   689      "inputs": [],
   690      "name": "collectProtocolFees",
   691      "outputs": [
   692        {
   693          "internalType": "bytes32",
   694          "name": "collectedProtocolFees",
   695          "type": "bytes32"
   696        }
   697      ],
   698      "stateMutability": "nonpayable",
   699      "type": "function"
   700    },
   701    {
   702      "inputs": [
   703        {
   704          "internalType": "contract ILBFlashLoanCallback",
   705          "name": "receiver",
   706          "type": "address"
   707        },
   708        {
   709          "internalType": "bytes32",
   710          "name": "amounts",
   711          "type": "bytes32"
   712        },
   713        {
   714          "internalType": "bytes",
   715          "name": "data",
   716          "type": "bytes"
   717        }
   718      ],
   719      "name": "flashLoan",
   720      "outputs": [],
   721      "stateMutability": "nonpayable",
   722      "type": "function"
   723    },
   724    {
   725      "inputs": [],
   726      "name": "forceDecay",
   727      "outputs": [],
   728      "stateMutability": "nonpayable",
   729      "type": "function"
   730    },
   731    {
   732      "inputs": [],
   733      "name": "getActiveId",
   734      "outputs": [
   735        {
   736          "internalType": "uint24",
   737          "name": "activeId",
   738          "type": "uint24"
   739        }
   740      ],
   741      "stateMutability": "view",
   742      "type": "function"
   743    },
   744    {
   745      "inputs": [
   746        {
   747          "internalType": "uint24",
   748          "name": "id",
   749          "type": "uint24"
   750        }
   751      ],
   752      "name": "getBin",
   753      "outputs": [
   754        {
   755          "internalType": "uint128",
   756          "name": "binReserveX",
   757          "type": "uint128"
   758        },
   759        {
   760          "internalType": "uint128",
   761          "name": "binReserveY",
   762          "type": "uint128"
   763        }
   764      ],
   765      "stateMutability": "view",
   766      "type": "function"
   767    },
   768    {
   769      "inputs": [],
   770      "name": "getBinStep",
   771      "outputs": [
   772        {
   773          "internalType": "uint16",
   774          "name": "binStep",
   775          "type": "uint16"
   776        }
   777      ],
   778      "stateMutability": "view",
   779      "type": "function"
   780    },
   781    {
   782      "inputs": [],
   783      "name": "getFactory",
   784      "outputs": [
   785        {
   786          "internalType": "contract ILBFactory",
   787          "name": "factory",
   788          "type": "address"
   789        }
   790      ],
   791      "stateMutability": "view",
   792      "type": "function"
   793    },
   794    {
   795      "inputs": [
   796        {
   797          "internalType": "uint256",
   798          "name": "price",
   799          "type": "uint256"
   800        }
   801      ],
   802      "name": "getIdFromPrice",
   803      "outputs": [
   804        {
   805          "internalType": "uint24",
   806          "name": "id",
   807          "type": "uint24"
   808        }
   809      ],
   810      "stateMutability": "view",
   811      "type": "function"
   812    },
   813    {
   814      "inputs": [
   815        {
   816          "internalType": "bool",
   817          "name": "swapForY",
   818          "type": "bool"
   819        },
   820        {
   821          "internalType": "uint24",
   822          "name": "id",
   823          "type": "uint24"
   824        }
   825      ],
   826      "name": "getNextNonEmptyBin",
   827      "outputs": [
   828        {
   829          "internalType": "uint24",
   830          "name": "nextId",
   831          "type": "uint24"
   832        }
   833      ],
   834      "stateMutability": "view",
   835      "type": "function"
   836    },
   837    {
   838      "inputs": [],
   839      "name": "getOracleParameters",
   840      "outputs": [
   841        {
   842          "internalType": "uint8",
   843          "name": "sampleLifetime",
   844          "type": "uint8"
   845        },
   846        {
   847          "internalType": "uint16",
   848          "name": "size",
   849          "type": "uint16"
   850        },
   851        {
   852          "internalType": "uint16",
   853          "name": "activeSize",
   854          "type": "uint16"
   855        },
   856        {
   857          "internalType": "uint40",
   858          "name": "lastUpdated",
   859          "type": "uint40"
   860        },
   861        {
   862          "internalType": "uint40",
   863          "name": "firstTimestamp",
   864          "type": "uint40"
   865        }
   866      ],
   867      "stateMutability": "view",
   868      "type": "function"
   869    },
   870    {
   871      "inputs": [
   872        {
   873          "internalType": "uint40",
   874          "name": "lookupTimestamp",
   875          "type": "uint40"
   876        }
   877      ],
   878      "name": "getOracleSampleAt",
   879      "outputs": [
   880        {
   881          "internalType": "uint64",
   882          "name": "cumulativeId",
   883          "type": "uint64"
   884        },
   885        {
   886          "internalType": "uint64",
   887          "name": "cumulativeVolatility",
   888          "type": "uint64"
   889        },
   890        {
   891          "internalType": "uint64",
   892          "name": "cumulativeBinCrossed",
   893          "type": "uint64"
   894        }
   895      ],
   896      "stateMutability": "view",
   897      "type": "function"
   898    },
   899    {
   900      "inputs": [
   901        {
   902          "internalType": "uint24",
   903          "name": "id",
   904          "type": "uint24"
   905        }
   906      ],
   907      "name": "getPriceFromId",
   908      "outputs": [
   909        {
   910          "internalType": "uint256",
   911          "name": "price",
   912          "type": "uint256"
   913        }
   914      ],
   915      "stateMutability": "view",
   916      "type": "function"
   917    },
   918    {
   919      "inputs": [],
   920      "name": "getProtocolFees",
   921      "outputs": [
   922        {
   923          "internalType": "uint128",
   924          "name": "protocolFeeX",
   925          "type": "uint128"
   926        },
   927        {
   928          "internalType": "uint128",
   929          "name": "protocolFeeY",
   930          "type": "uint128"
   931        }
   932      ],
   933      "stateMutability": "view",
   934      "type": "function"
   935    },
   936    {
   937      "inputs": [],
   938      "name": "getReserves",
   939      "outputs": [
   940        {
   941          "internalType": "uint128",
   942          "name": "reserveX",
   943          "type": "uint128"
   944        },
   945        {
   946          "internalType": "uint128",
   947          "name": "reserveY",
   948          "type": "uint128"
   949        }
   950      ],
   951      "stateMutability": "view",
   952      "type": "function"
   953    },
   954    {
   955      "inputs": [],
   956      "name": "getStaticFeeParameters",
   957      "outputs": [
   958        {
   959          "internalType": "uint16",
   960          "name": "baseFactor",
   961          "type": "uint16"
   962        },
   963        {
   964          "internalType": "uint16",
   965          "name": "filterPeriod",
   966          "type": "uint16"
   967        },
   968        {
   969          "internalType": "uint16",
   970          "name": "decayPeriod",
   971          "type": "uint16"
   972        },
   973        {
   974          "internalType": "uint16",
   975          "name": "reductionFactor",
   976          "type": "uint16"
   977        },
   978        {
   979          "internalType": "uint24",
   980          "name": "variableFeeControl",
   981          "type": "uint24"
   982        },
   983        {
   984          "internalType": "uint16",
   985          "name": "protocolShare",
   986          "type": "uint16"
   987        },
   988        {
   989          "internalType": "uint24",
   990          "name": "maxVolatilityAccumulator",
   991          "type": "uint24"
   992        }
   993      ],
   994      "stateMutability": "view",
   995      "type": "function"
   996    },
   997    {
   998      "inputs": [
   999        {
  1000          "internalType": "uint128",
  1001          "name": "amountOut",
  1002          "type": "uint128"
  1003        },
  1004        {
  1005          "internalType": "bool",
  1006          "name": "swapForY",
  1007          "type": "bool"
  1008        }
  1009      ],
  1010      "name": "getSwapIn",
  1011      "outputs": [
  1012        {
  1013          "internalType": "uint128",
  1014          "name": "amountIn",
  1015          "type": "uint128"
  1016        },
  1017        {
  1018          "internalType": "uint128",
  1019          "name": "amountOutLeft",
  1020          "type": "uint128"
  1021        },
  1022        {
  1023          "internalType": "uint128",
  1024          "name": "fee",
  1025          "type": "uint128"
  1026        }
  1027      ],
  1028      "stateMutability": "view",
  1029      "type": "function"
  1030    },
  1031    {
  1032      "inputs": [
  1033        {
  1034          "internalType": "uint128",
  1035          "name": "amountIn",
  1036          "type": "uint128"
  1037        },
  1038        {
  1039          "internalType": "bool",
  1040          "name": "swapForY",
  1041          "type": "bool"
  1042        }
  1043      ],
  1044      "name": "getSwapOut",
  1045      "outputs": [
  1046        {
  1047          "internalType": "uint128",
  1048          "name": "amountInLeft",
  1049          "type": "uint128"
  1050        },
  1051        {
  1052          "internalType": "uint128",
  1053          "name": "amountOut",
  1054          "type": "uint128"
  1055        },
  1056        {
  1057          "internalType": "uint128",
  1058          "name": "fee",
  1059          "type": "uint128"
  1060        }
  1061      ],
  1062      "stateMutability": "view",
  1063      "type": "function"
  1064    },
  1065    {
  1066      "inputs": [],
  1067      "name": "getTokenX",
  1068      "outputs": [
  1069        {
  1070          "internalType": "contract IERC20",
  1071          "name": "tokenX",
  1072          "type": "address"
  1073        }
  1074      ],
  1075      "stateMutability": "view",
  1076      "type": "function"
  1077    },
  1078    {
  1079      "inputs": [],
  1080      "name": "getTokenY",
  1081      "outputs": [
  1082        {
  1083          "internalType": "contract IERC20",
  1084          "name": "tokenY",
  1085          "type": "address"
  1086        }
  1087      ],
  1088      "stateMutability": "view",
  1089      "type": "function"
  1090    },
  1091    {
  1092      "inputs": [],
  1093      "name": "getVariableFeeParameters",
  1094      "outputs": [
  1095        {
  1096          "internalType": "uint24",
  1097          "name": "volatilityAccumulator",
  1098          "type": "uint24"
  1099        },
  1100        {
  1101          "internalType": "uint24",
  1102          "name": "volatilityReference",
  1103          "type": "uint24"
  1104        },
  1105        {
  1106          "internalType": "uint24",
  1107          "name": "idReference",
  1108          "type": "uint24"
  1109        },
  1110        {
  1111          "internalType": "uint40",
  1112          "name": "timeOfLastUpdate",
  1113          "type": "uint40"
  1114        }
  1115      ],
  1116      "stateMutability": "view",
  1117      "type": "function"
  1118    },
  1119    {
  1120      "inputs": [
  1121        {
  1122          "internalType": "uint16",
  1123          "name": "newLength",
  1124          "type": "uint16"
  1125        }
  1126      ],
  1127      "name": "increaseOracleLength",
  1128      "outputs": [],
  1129      "stateMutability": "nonpayable",
  1130      "type": "function"
  1131    },
  1132    {
  1133      "inputs": [
  1134        {
  1135          "internalType": "uint16",
  1136          "name": "baseFactor",
  1137          "type": "uint16"
  1138        },
  1139        {
  1140          "internalType": "uint16",
  1141          "name": "filterPeriod",
  1142          "type": "uint16"
  1143        },
  1144        {
  1145          "internalType": "uint16",
  1146          "name": "decayPeriod",
  1147          "type": "uint16"
  1148        },
  1149        {
  1150          "internalType": "uint16",
  1151          "name": "reductionFactor",
  1152          "type": "uint16"
  1153        },
  1154        {
  1155          "internalType": "uint24",
  1156          "name": "variableFeeControl",
  1157          "type": "uint24"
  1158        },
  1159        {
  1160          "internalType": "uint16",
  1161          "name": "protocolShare",
  1162          "type": "uint16"
  1163        },
  1164        {
  1165          "internalType": "uint24",
  1166          "name": "maxVolatilityAccumulator",
  1167          "type": "uint24"
  1168        },
  1169        {
  1170          "internalType": "uint24",
  1171          "name": "activeId",
  1172          "type": "uint24"
  1173        }
  1174      ],
  1175      "name": "initialize",
  1176      "outputs": [],
  1177      "stateMutability": "nonpayable",
  1178      "type": "function"
  1179    },
  1180    {
  1181      "inputs": [
  1182        {
  1183          "internalType": "address",
  1184          "name": "owner",
  1185          "type": "address"
  1186        },
  1187        {
  1188          "internalType": "address",
  1189          "name": "spender",
  1190          "type": "address"
  1191        }
  1192      ],
  1193      "name": "isApprovedForAll",
  1194      "outputs": [
  1195        {
  1196          "internalType": "bool",
  1197          "name": "",
  1198          "type": "bool"
  1199        }
  1200      ],
  1201      "stateMutability": "view",
  1202      "type": "function"
  1203    },
  1204    {
  1205      "inputs": [
  1206        {
  1207          "internalType": "address",
  1208          "name": "to",
  1209          "type": "address"
  1210        },
  1211        {
  1212          "internalType": "bytes32[]",
  1213          "name": "liquidityConfigs",
  1214          "type": "bytes32[]"
  1215        },
  1216        {
  1217          "internalType": "address",
  1218          "name": "refundTo",
  1219          "type": "address"
  1220        }
  1221      ],
  1222      "name": "mint",
  1223      "outputs": [
  1224        {
  1225          "internalType": "bytes32",
  1226          "name": "amountsReceived",
  1227          "type": "bytes32"
  1228        },
  1229        {
  1230          "internalType": "bytes32",
  1231          "name": "amountsLeft",
  1232          "type": "bytes32"
  1233        },
  1234        {
  1235          "internalType": "uint256[]",
  1236          "name": "liquidityMinted",
  1237          "type": "uint256[]"
  1238        }
  1239      ],
  1240      "stateMutability": "nonpayable",
  1241      "type": "function"
  1242    },
  1243    {
  1244      "inputs": [],
  1245      "name": "name",
  1246      "outputs": [
  1247        {
  1248          "internalType": "string",
  1249          "name": "",
  1250          "type": "string"
  1251        }
  1252      ],
  1253      "stateMutability": "view",
  1254      "type": "function"
  1255    },
  1256    {
  1257      "inputs": [
  1258        {
  1259          "internalType": "uint16",
  1260          "name": "baseFactor",
  1261          "type": "uint16"
  1262        },
  1263        {
  1264          "internalType": "uint16",
  1265          "name": "filterPeriod",
  1266          "type": "uint16"
  1267        },
  1268        {
  1269          "internalType": "uint16",
  1270          "name": "decayPeriod",
  1271          "type": "uint16"
  1272        },
  1273        {
  1274          "internalType": "uint16",
  1275          "name": "reductionFactor",
  1276          "type": "uint16"
  1277        },
  1278        {
  1279          "internalType": "uint24",
  1280          "name": "variableFeeControl",
  1281          "type": "uint24"
  1282        },
  1283        {
  1284          "internalType": "uint16",
  1285          "name": "protocolShare",
  1286          "type": "uint16"
  1287        },
  1288        {
  1289          "internalType": "uint24",
  1290          "name": "maxVolatilityAccumulator",
  1291          "type": "uint24"
  1292        }
  1293      ],
  1294      "name": "setStaticFeeParameters",
  1295      "outputs": [],
  1296      "stateMutability": "nonpayable",
  1297      "type": "function"
  1298    },
  1299    {
  1300      "inputs": [
  1301        {
  1302          "internalType": "bool",
  1303          "name": "swapForY",
  1304          "type": "bool"
  1305        },
  1306        {
  1307          "internalType": "address",
  1308          "name": "to",
  1309          "type": "address"
  1310        }
  1311      ],
  1312      "name": "swap",
  1313      "outputs": [
  1314        {
  1315          "internalType": "bytes32",
  1316          "name": "amountsOut",
  1317          "type": "bytes32"
  1318        }
  1319      ],
  1320      "stateMutability": "nonpayable",
  1321      "type": "function"
  1322    },
  1323    {
  1324      "inputs": [],
  1325      "name": "symbol",
  1326      "outputs": [
  1327        {
  1328          "internalType": "string",
  1329          "name": "",
  1330          "type": "string"
  1331        }
  1332      ],
  1333      "stateMutability": "view",
  1334      "type": "function"
  1335    },
  1336    {
  1337      "inputs": [
  1338        {
  1339          "internalType": "uint256",
  1340          "name": "id",
  1341          "type": "uint256"
  1342        }
  1343      ],
  1344      "name": "totalSupply",
  1345      "outputs": [
  1346        {
  1347          "internalType": "uint256",
  1348          "name": "",
  1349          "type": "uint256"
  1350        }
  1351      ],
  1352      "stateMutability": "view",
  1353      "type": "function"
  1354    }
  1355  ]