|
|
@@ -0,0 +1,1364 @@
|
|
|
+[
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "stateMutability": "nonpayable",
|
|
|
+ "type": "constructor"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "anonymous": false,
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "indexed": true,
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "owner",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": true,
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "spender",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "value",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "Approval",
|
|
|
+ "type": "event"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "anonymous": false,
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "indexed": true,
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "sender",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amount0",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amount1",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": true,
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "to",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "Burn",
|
|
|
+ "type": "event"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "anonymous": false,
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "pairFee",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "liqFee",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "ChangeFee",
|
|
|
+ "type": "event"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "anonymous": false,
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "indexed": true,
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "sender",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": true,
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "recipient",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amount0",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amount1",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "Claim",
|
|
|
+ "type": "event"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "anonymous": false,
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "indexed": true,
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "delegator",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": true,
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "fromDelegate",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": true,
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "toDelegate",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "DelegateChanged",
|
|
|
+ "type": "event"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "anonymous": false,
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "indexed": true,
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "delegate",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "previousBalance",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "newBalance",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "DelegateVotesChanged",
|
|
|
+ "type": "event"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "anonymous": false,
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "indexed": true,
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "sender",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amount0",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amount1",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "pAmount0",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "pAmount1",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "Fees",
|
|
|
+ "type": "event"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "anonymous": false,
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "indexed": true,
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "sender",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amount0",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amount1",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "Mint",
|
|
|
+ "type": "event"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "anonymous": false,
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "indexed": true,
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "sender",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amount0In",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amount1In",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amount0Out",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amount1Out",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": true,
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "to",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "Swap",
|
|
|
+ "type": "event"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "anonymous": false,
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "reserve0",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "reserve1",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "Sync",
|
|
|
+ "type": "event"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "anonymous": false,
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "indexed": true,
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "from",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": true,
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "to",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "indexed": false,
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "value",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "Transfer",
|
|
|
+ "type": "event"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "stateMutability": "payable",
|
|
|
+ "type": "fallback"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "DOMAIN_SEPARATOR",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "bytes32",
|
|
|
+ "name": "",
|
|
|
+ "type": "bytes32"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "MINIMUM_LIQUIDITY",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "allowance",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "spender",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "value",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "approve",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "bool",
|
|
|
+ "name": "",
|
|
|
+ "type": "bool"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "nonpayable",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "balanceOf",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "to",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "burn",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amount0",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amount1",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "nonpayable",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "_fee",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "changeFeeType",
|
|
|
+ "outputs": [],
|
|
|
+ "stateMutability": "nonpayable",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint32",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint32"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "checkpoints",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint32",
|
|
|
+ "name": "fromBlock",
|
|
|
+ "type": "uint32"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "votes",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "claimFees",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "claimed0",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "claimed1",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "nonpayable",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "claimable0",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "claimable1",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "tokenIn",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amountIn",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "current",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amountOut",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "currentCumulativePrices",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "reserve0Cumulative",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "reserve1Cumulative",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "blockTimestamp",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "decimals",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint8",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint8"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "delegatee",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "delegate",
|
|
|
+ "outputs": [],
|
|
|
+ "stateMutability": "nonpayable",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "delegator",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "delegates",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "factory",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "fees",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amountIn",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "tokenIn",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "getAmountOut",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "account",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "getCurrentVotes",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "account",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "blockNumber",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "getPriorVotes",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "getReserves",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "_reserve0",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "_reserve1",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "_blockTimestampLast",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "index0",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "index1",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "_token0",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "_token1",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "_fee",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "bool",
|
|
|
+ "name": "_stable",
|
|
|
+ "type": "bool"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "initialize",
|
|
|
+ "outputs": [],
|
|
|
+ "stateMutability": "nonpayable",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "lastObservation",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "components": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "timestamp",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "reserve0Cumulative",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "reserve1Cumulative",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "internalType": "struct MuteSwitchPairDynamic.Observation",
|
|
|
+ "name": "",
|
|
|
+ "type": "tuple"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "metadata",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "dec0",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "dec1",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "r0",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "r1",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "bool",
|
|
|
+ "name": "st",
|
|
|
+ "type": "bool"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "t0",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "t1",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "to",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "mint",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "liquidity",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "nonpayable",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "name",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "string",
|
|
|
+ "name": "",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "nonces",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "numCheckpoints",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint32",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint32"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "observationLength",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "observations",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "timestamp",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "reserve0Cumulative",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "reserve1Cumulative",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "pairFee",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "owner",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "spender",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "value",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "deadline",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "bytes",
|
|
|
+ "name": "sig",
|
|
|
+ "type": "bytes"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "permit",
|
|
|
+ "outputs": [],
|
|
|
+ "stateMutability": "nonpayable",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "tokenIn",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amountIn",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "points",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "prices",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256[]",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256[]"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "tokenIn",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amountIn",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "granularity",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "quote",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amountOut",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "reserve0CumulativeLast",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "reserve1CumulativeLast",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "tokenIn",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amountIn",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "points",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "window",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "sample",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256[]",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256[]"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "to",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "skim",
|
|
|
+ "outputs": [],
|
|
|
+ "stateMutability": "nonpayable",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "stable",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "bool",
|
|
|
+ "name": "",
|
|
|
+ "type": "bool"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "supplyIndex0",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "supplyIndex1",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amount0Out",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "amount1Out",
|
|
|
+ "type": "uint256"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "to",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "bytes",
|
|
|
+ "name": "data",
|
|
|
+ "type": "bytes"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "swap",
|
|
|
+ "outputs": [],
|
|
|
+ "stateMutability": "nonpayable",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "symbol",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "string",
|
|
|
+ "name": "",
|
|
|
+ "type": "string"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "sync",
|
|
|
+ "outputs": [],
|
|
|
+ "stateMutability": "nonpayable",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "token0",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "token1",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "tokens",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "",
|
|
|
+ "type": "address"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [],
|
|
|
+ "name": "totalSupply",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "view",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "to",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "value",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "transfer",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "bool",
|
|
|
+ "name": "",
|
|
|
+ "type": "bool"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "nonpayable",
|
|
|
+ "type": "function"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "inputs": [
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "from",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "address",
|
|
|
+ "name": "to",
|
|
|
+ "type": "address"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "internalType": "uint256",
|
|
|
+ "name": "value",
|
|
|
+ "type": "uint256"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "name": "transferFrom",
|
|
|
+ "outputs": [
|
|
|
+ {
|
|
|
+ "internalType": "bool",
|
|
|
+ "name": "",
|
|
|
+ "type": "bool"
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "stateMutability": "nonpayable",
|
|
|
+ "type": "function"
|
|
|
+ }
|
|
|
+]
|