blackbull-sdk
Version:
An SDK for building applications on top of Blackbullswap
7,778 lines • 327 kB
JSON
{
"id": "d976b3bdf2c562cae8a09a4b43fdfbad",
"_format": "hh-sol-build-info-1",
"solcVersion": "0.8.0",
"solcLongVersion": "0.8.0+commit.c7dfd78e",
"input": {
"language": "Solidity",
"sources": {
"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinERC20.sol": {
"content": "pragma solidity >=0.5.0;\n\ninterface IPangolinERC20 {\n event Approval(address indexed owner, address indexed spender, uint value);\n event Transfer(address indexed from, address indexed to, uint value);\n\n function name() external pure returns (string memory);\n function symbol() external pure returns (string memory);\n function decimals() external pure returns (uint8);\n function totalSupply() external view returns (uint);\n function balanceOf(address owner) external view returns (uint);\n function allowance(address owner, address spender) external view returns (uint);\n\n function approve(address spender, uint value) external returns (bool);\n function transfer(address to, uint value) external returns (bool);\n function transferFrom(address from, address to, uint value) external returns (bool);\n\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n function PERMIT_TYPEHASH() external pure returns (bytes32);\n function nonces(address owner) external view returns (uint);\n\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\n}\n"
},
"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinCallee.sol": {
"content": "pragma solidity >=0.5.0;\n\ninterface IPangolinCallee {\n function pangolinCall(address sender, uint amount0, uint amount1, bytes calldata data) external;\n}\n"
},
"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinFactory.sol": {
"content": "pragma solidity >=0.5.0;\n\ninterface IPangolinFactory {\n event PairCreated(address indexed token0, address indexed token1, address pair, uint);\n\n function feeTo() external view returns (address);\n function feeToSetter() external view returns (address);\n\n function getPair(address tokenA, address tokenB) external view returns (address pair);\n function allPairs(uint) external view returns (address pair);\n function allPairsLength() external view returns (uint);\n\n function createPair(address tokenA, address tokenB) external returns (address pair);\n\n function setFeeTo(address) external;\n function setFeeToSetter(address) external;\n}\n"
},
"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IERC20.sol": {
"content": "pragma solidity >=0.5.0;\n\ninterface IERC20 {\n event Approval(address indexed owner, address indexed spender, uint value);\n event Transfer(address indexed from, address indexed to, uint value);\n\n function name() external view returns (string memory);\n function symbol() external view returns (string memory);\n function decimals() external view returns (uint8);\n function totalSupply() external view returns (uint);\n function balanceOf(address owner) external view returns (uint);\n function allowance(address owner, address spender) external view returns (uint);\n\n function approve(address spender, uint value) external returns (bool);\n function transfer(address to, uint value) external returns (bool);\n function transferFrom(address from, address to, uint value) external returns (bool);\n}\n"
},
"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinPair.sol": {
"content": "pragma solidity >=0.5.0;\n\ninterface IPangolinPair {\n event Approval(address indexed owner, address indexed spender, uint value);\n event Transfer(address indexed from, address indexed to, uint value);\n\n function name() external pure returns (string memory);\n function symbol() external pure returns (string memory);\n function decimals() external pure returns (uint8);\n function totalSupply() external view returns (uint);\n function balanceOf(address owner) external view returns (uint);\n function allowance(address owner, address spender) external view returns (uint);\n\n function approve(address spender, uint value) external returns (bool);\n function transfer(address to, uint value) external returns (bool);\n function transferFrom(address from, address to, uint value) external returns (bool);\n\n function DOMAIN_SEPARATOR() external view returns (bytes32);\n function PERMIT_TYPEHASH() external pure returns (bytes32);\n function nonces(address owner) external view returns (uint);\n\n function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;\n\n event Mint(address indexed sender, uint amount0, uint amount1);\n event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);\n event Swap(\n address indexed sender,\n uint amount0In,\n uint amount1In,\n uint amount0Out,\n uint amount1Out,\n address indexed to\n );\n event Sync(uint112 reserve0, uint112 reserve1);\n\n function MINIMUM_LIQUIDITY() external pure returns (uint);\n function factory() external view returns (address);\n function token0() external view returns (address);\n function token1() external view returns (address);\n function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);\n function price0CumulativeLast() external view returns (uint);\n function price1CumulativeLast() external view returns (uint);\n function kLast() external view returns (uint);\n\n function mint(address to) external returns (uint liquidity);\n function burn(address to) external returns (uint amount0, uint amount1);\n function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;\n function skim(address to) external;\n function sync() external;\n\n function initialize(address, address) external;\n}\n"
}
},
"settings": {
"optimizer": {
"enabled": true,
"runs": 1000
},
"outputSelection": {
"*": {
"*": [
"abi",
"evm.bytecode",
"evm.deployedBytecode",
"evm.methodIdentifiers",
"metadata"
],
"": [
"ast"
]
}
}
}
},
"output": {
"contracts": {
"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IERC20.sol": {
"IERC20": {
"abi": [
{
"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": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
"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": "owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"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"
}
],
"evm": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"methodIdentifiers": {
"allowance(address,address)": "dd62ed3e",
"approve(address,uint256)": "095ea7b3",
"balanceOf(address)": "70a08231",
"decimals()": "313ce567",
"name()": "06fdde03",
"symbol()": "95d89b41",
"totalSupply()": "18160ddd",
"transfer(address,uint256)": "a9059cbb",
"transferFrom(address,address,uint256)": "23b872dd"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.0+commit.c7dfd78e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"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\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"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\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IERC20.sol\":\"IERC20\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IERC20.sol\":{\"keccak256\":\"0x61db17aebc5d812c7002d15c1da954065e56abe49d64b14c034abe5604d70eb3\",\"urls\":[\"bzz-raw://b006685e753f9120469f10b09c159f222d4cb8b507a6c1f0c14ed50c883ebe66\",\"dweb:/ipfs/QmSyY7iTugbczPwfGK67etiyPULenYGzzRYbt8aabwwkUb\"]}},\"version\":1}"
}
},
"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinCallee.sol": {
"IPangolinCallee": {
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "sender",
"type": "address"
},
{
"internalType": "uint256",
"name": "amount0",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "amount1",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"name": "pangolinCall",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"evm": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"methodIdentifiers": {
"pangolinCall(address,uint256,uint256,bytes)": "f8890f8e"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.0+commit.c7dfd78e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount0\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"amount1\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"pangolinCall\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinCallee.sol\":\"IPangolinCallee\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinCallee.sol\":{\"keccak256\":\"0x6ddd8672a7e7006962a3b18fa733073d74d63452a527c3e3e0d89bbedc07ca74\",\"urls\":[\"bzz-raw://e8521b04f12a3b97583ee564f5035863b246ec717ae7ee30ee2566699180b77d\",\"dweb:/ipfs/QmfBdpdyujC285Bkx2M4FdHdrnhufFJXPQufHRa7VPNE91\"]}},\"version\":1}"
}
},
"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinERC20.sol": {
"IPangolinERC20": {
"abi": [
{
"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": "from",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "to",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event"
},
{
"inputs": [],
"name": "DOMAIN_SEPARATOR",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "PERMIT_TYPEHASH",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
"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": "owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "name",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "nonces",
"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": "uint8",
"name": "v",
"type": "uint8"
},
{
"internalType": "bytes32",
"name": "r",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "s",
"type": "bytes32"
}
],
"name": "permit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "symbol",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"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"
}
],
"evm": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"methodIdentifiers": {
"DOMAIN_SEPARATOR()": "3644e515",
"PERMIT_TYPEHASH()": "30adf81f",
"allowance(address,address)": "dd62ed3e",
"approve(address,uint256)": "095ea7b3",
"balanceOf(address)": "70a08231",
"decimals()": "313ce567",
"name()": "06fdde03",
"nonces(address)": "7ecebe00",
"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": "d505accf",
"symbol()": "95d89b41",
"totalSupply()": "18160ddd",
"transfer(address,uint256)": "a9059cbb",
"transferFrom(address,address,uint256)": "23b872dd"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.0+commit.c7dfd78e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PERMIT_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"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\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"nonces\",\"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\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"permit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"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\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinERC20.sol\":\"IPangolinERC20\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinERC20.sol\":{\"keccak256\":\"0x9274f7c1d20bb2e6c460fe691d0d991e3feb9cd481e45adf59494bcf42ca6768\",\"urls\":[\"bzz-raw://39d7cd1e983a9a6790acd3189c6cb9cc181b3d3abf291833eb04805fadfbba75\",\"dweb:/ipfs/QmaZEW32bzBeZZGS317Gz2jG8YjzzKYp986uN1p14xyt4b\"]}},\"version\":1}"
}
},
"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinFactory.sol": {
"IPangolinFactory": {
"abi": [
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"internalType": "address",
"name": "token0",
"type": "address"
},
{
"indexed": true,
"internalType": "address",
"name": "token1",
"type": "address"
},
{
"indexed": false,
"internalType": "address",
"name": "pair",
"type": "address"
},
{
"indexed": false,
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "PairCreated",
"type": "event"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"name": "allPairs",
"outputs": [
{
"internalType": "address",
"name": "pair",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "allPairsLength",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"internalType": "address",
"name": "tokenB",
"type": "address"
}
],
"name": "createPair",
"outputs": [
{
"internalType": "address",
"name": "pair",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "feeTo",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "feeToSetter",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "tokenA",
"type": "address"
},
{
"internalType": "address",
"name": "tokenB",
"type": "address"
}
],
"name": "getPair",
"outputs": [
{
"internalType": "address",
"name": "pair",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "setFeeTo",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "setFeeToSetter",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
],
"evm": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"methodIdentifiers": {
"allPairs(uint256)": "1e3dd18b",
"allPairsLength()": "574f2ba3",
"createPair(address,address)": "c9c65396",
"feeTo()": "017e7e58",
"feeToSetter()": "094b7415",
"getPair(address,address)": "e6a43905",
"setFeeTo(address)": "f46901ed",
"setFeeToSetter(address)": "a2e74af6"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.0+commit.c7dfd78e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token0\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"token1\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"PairCreated\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"allPairs\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"allPairsLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"createPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeTo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"feeToSetter\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"tokenA\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenB\",\"type\":\"address\"}],\"name\":\"getPair\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"pair\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"setFeeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"setFeeToSetter\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinFactory.sol\":\"IPangolinFactory\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinFactory.sol\":{\"keccak256\":\"0x2862caf1e97496217c1e5431ae6778d585a9a778d79fb95f3f3e587dd3666290\",\"urls\":[\"bzz-raw://91933c31ffd3405f2c3f2eb67894ab532797d48087840b95ebd04094442f9357\",\"dweb:/ipfs/QmXKX3RNDUQKsBjxMH2mrNKKNwUpTxak3QbaQcLwYsRrRZ\"]}},\"version\":1}"
}
},
"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinPair.sol": {
"IPangolinPair": {
"abi": [
{
"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": 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": "uint112",
"name": "reserve0",
"type": "uint112"
},
{
"indexed": false,
"internalType": "uint112",
"name": "reserve1",
"type": "uint112"
}
],
"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"
},
{
"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": "pure",
"type": "function"
},
{
"inputs": [],
"name": "PERMIT_TYPEHASH",
"outputs": [
{
"internalType": "bytes32",
"name": "",
"type": "bytes32"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
},
{
"internalType": "address",
"name": "spender",
"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": "owner",
"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": [],
"name": "decimals",
"outputs": [
{
"internalType": "uint8",
"name": "",
"type": "uint8"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "factory",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "getReserves",
"outputs": [
{
"internalType": "uint112",
"name": "reserve0",
"type": "uint112"
},
{
"internalType": "uint112",
"name": "reserve1",
"type": "uint112"
},
{
"internalType": "uint32",
"name": "blockTimestampLast",
"type": "uint32"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "kLast",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"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": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "owner",
"type": "address"
}
],
"name": "nonces",
"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": "uint8",
"name": "v",
"type": "uint8"
},
{
"internalType": "bytes32",
"name": "r",
"type": "bytes32"
},
{
"internalType": "bytes32",
"name": "s",
"type": "bytes32"
}
],
"name": "permit",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "price0CumulativeLast",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "price1CumulativeLast",
"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": [
{
"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": "pure",
"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": "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"
}
],
"evm": {
"bytecode": {
"generatedSources": [],
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"deployedBytecode": {
"generatedSources": [],
"immutableReferences": {},
"linkReferences": {},
"object": "",
"opcodes": "",
"sourceMap": ""
},
"methodIdentifiers": {
"DOMAIN_SEPARATOR()": "3644e515",
"MINIMUM_LIQUIDITY()": "ba9a7a56",
"PERMIT_TYPEHASH()": "30adf81f",
"allowance(address,address)": "dd62ed3e",
"approve(address,uint256)": "095ea7b3",
"balanceOf(address)": "70a08231",
"burn(address)": "89afcb44",
"decimals()": "313ce567",
"factory()": "c45a0155",
"getReserves()": "0902f1ac",
"initialize(address,address)": "485cc955",
"kLast()": "7464fc3d",
"mint(address)": "6a627842",
"name()": "06fdde03",
"nonces(address)": "7ecebe00",
"permit(address,address,uint256,uint256,uint8,bytes32,bytes32)": "d505accf",
"price0CumulativeLast()": "5909c0d5",
"price1CumulativeLast()": "5a3d5493",
"skim(address)": "bc25cf77",
"swap(uint256,uint256,address,bytes)": "022c0d9f",
"symbol()": "95d89b41",
"sync()": "fff6cae9",
"token0()": "0dfe1681",
"token1()": "d21220a7",
"totalSupply()": "18160ddd",
"transfer(address,uint256)": "a9059cbb",
"transferFrom(address,address,uint256)": "23b872dd"
}
},
"metadata": "{\"compiler\":{\"version\":\"0.8.0+commit.c7dfd78e\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"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\":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\":\"uint112\",\"name\":\"reserve0\",\"type\":\"uint112\"},{\"indexed\":false,\"internalType\":\"uint112\",\"name\":\"reserve1\",\"type\":\"uint112\"}],\"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\"},{\"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\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PERMIT_TYPEHASH\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"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\":\"owner\",\"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\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"factory\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getReserves\",\"outputs\":[{\"internalType\":\"uint112\",\"name\":\"reserve0\",\"type\":\"uint112\"},{\"internalType\":\"uint112\",\"name\":\"reserve1\",\"type\":\"uint112\"},{\"internalType\":\"uint32\",\"name\":\"blockTimestampLast\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"kLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"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\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"nonces\",\"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\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"permit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"price0CumulativeLast\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"price1CumulativeLast\",\"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\":[{\"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\":\"pure\",\"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\":\"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\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinPair.sol\":\"IPangolinPair\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":true,\"runs\":1000},\"remappings\":[]},\"sources\":{\"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinPair.sol\":{\"keccak256\":\"0x3e48b36ecfa9cc348ad1a1221eed4b2d0206d521d00d8d3483c2c8c1dfd5341b\",\"urls\":[\"bzz-raw://71ad82ebba7acc697affe9ec68ef9b128cd537cbb7fd2a780c352d0d4d3ff38a\",\"dweb:/ipfs/QmdYA2z8nc5HPYYmrm348Tcizyny1rjdjxJ6ZLvnsLCX2M\"]}},\"version\":1}"
}
}
},
"errors": [
{
"component": "general",
"errorCode": "1878",
"formattedMessage": "Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.\n--> @pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IERC20.sol\n\n",
"message": "SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.",
"severity": "warning",
"sourceLocation": {
"end": -1,
"file": "@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IERC20.sol",
"start": -1
},
"type": "Warning"
},
{
"component": "general",
"errorCode": "1878",
"formattedMessage": "Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.\n--> @pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinCallee.sol\n\n",
"message": "SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.",
"severity": "warning",
"sourceLocation": {
"end": -1,
"file": "@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinCallee.sol",
"start": -1
},
"type": "Warning"
},
{
"component": "general",
"errorCode": "1878",
"formattedMessage": "Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.\n--> @pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinERC20.sol\n\n",
"message": "SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.",
"severity": "warning",
"sourceLocation": {
"end": -1,
"file": "@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinERC20.sol",
"start": -1
},
"type": "Warning"
},
{
"component": "general",
"errorCode": "1878",
"formattedMessage": "Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.\n--> @pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinFactory.sol\n\n",
"message": "SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.",
"severity": "warning",
"sourceLocation": {
"end": -1,
"file": "@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinFactory.sol",
"start": -1
},
"type": "Warning"
},
{
"component": "general",
"errorCode": "1878",
"formattedMessage": "Warning: SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.\n--> @pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinPair.sol\n\n",
"message": "SPDX license identifier not provided in source file. Before publishing, consider adding a comment containing \"SPDX-License-Identifier: <SPDX-License>\" to each source file. Use \"SPDX-License-Identifier: UNLICENSED\" for non-open-source code. Please see https://spdx.org for more information.",
"severity": "warning",
"sourceLocation": {
"end": -1,
"file": "@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinPair.sol",
"start": -1
},
"type": "Warning"
}
],
"sources": {
"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IERC20.sol": {
"ast": {
"absolutePath": "@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IERC20.sol",
"exportedSymbols": {
"IERC20": [
83
]
},
"id": 84,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 1,
"literals": [
"solidity",
">=",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:24:0"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 83,
"linearizedBaseContracts": [
83
],
"name": "IERC20",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"id": 9,
"name": "Approval",
"nodeType": "EventDefinition",
"parameters": {
"id": 8,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 3,
"indexed": true,
"mutability": "mutable",
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 9,
"src": "64:21:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 2,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "64:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 5,
"indexed": true,
"mutability": "mutable",
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 9,
"src": "87:23:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 4,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "87:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 7,
"indexed": false,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 9,
"src": "112:10:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 6,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "112:4:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "63:60:0"
},
"src": "49:75:0"
},
{
"anonymous": false,
"id": 17,
"name": "Transfer",
"nodeType": "EventDefinition",
"parameters": {
"id": 16,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 11,
"indexed": true,
"mutability": "mutable",
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 17,
"src": "144:20:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 10,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "144:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 13,
"indexed": true,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 17,
"src": "166:18:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 12,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "166:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 15,
"indexed": false,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 17,
"src": "186:10:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 14,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "186:4:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "143:54:0"
},
"src": "129:69:0"
},
{
"functionSelector": "06fdde03",
"id": 22,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "name",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 18,
"nodeType": "ParameterList",
"parameters": [],
"src": "217:2:0"
},
"returnParameters": {
"id": 21,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 20,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 22,
"src": "243:13:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 19,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "243:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "242:15:0"
},
"scope": 83,
"src": "204:54:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "95d89b41",
"id": 27,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "symbol",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 23,
"nodeType": "ParameterList",
"parameters": [],
"src": "278:2:0"
},
"returnParameters": {
"id": 26,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 25,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 27,
"src": "304:13:0",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 24,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "304:6:0",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "303:15:0"
},
"scope": 83,
"src": "263:56:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "313ce567",
"id": 32,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "decimals",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 28,
"nodeType": "ParameterList",
"parameters": [],
"src": "341:2:0"
},
"returnParameters": {
"id": 31,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 30,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 32,
"src": "367:5:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 29,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "367:5:0",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
}
],
"src": "366:7:0"
},
"scope": 83,
"src": "324:50:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "18160ddd",
"id": 37,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "totalSupply",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 33,
"nodeType": "ParameterList",
"parameters": [],
"src": "399:2:0"
},
"returnParameters": {
"id": 36,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 35,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 37,
"src": "425:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 34,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "425:4:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "424:6:0"
},
"scope": 83,
"src": "379:52:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "70a08231",
"id": 44,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 40,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 39,
"mutability": "mutable",
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 44,
"src": "455:13:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 38,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "455:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "454:15:0"
},
"returnParameters": {
"id": 43,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 42,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 44,
"src": "493:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 41,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "493:4:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "492:6:0"
},
"scope": 83,
"src": "436:63:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "dd62ed3e",
"id": 53,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "allowance",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 49,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 46,
"mutability": "mutable",
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 53,
"src": "523:13:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 45,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "523:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 48,
"mutability": "mutable",
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 53,
"src": "538:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 47,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "538:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "522:32:0"
},
"returnParameters": {
"id": 52,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 51,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 53,
"src": "578:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 50,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "578:4:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "577:6:0"
},
"scope": 83,
"src": "504:80:0",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "095ea7b3",
"id": 62,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "approve",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 58,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 55,
"mutability": "mutable",
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 62,
"src": "607:15:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 54,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "607:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 57,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 62,
"src": "624:10:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 56,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "624:4:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "606:29:0"
},
"returnParameters": {
"id": 61,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 60,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 62,
"src": "654:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 59,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "654:4:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "653:6:0"
},
"scope": 83,
"src": "590:70:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "a9059cbb",
"id": 71,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 67,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 64,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 71,
"src": "683:10:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 63,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "683:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 66,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 71,
"src": "695:10:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 65,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "695:4:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "682:24:0"
},
"returnParameters": {
"id": 70,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 69,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 71,
"src": "725:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 68,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "725:4:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "724:6:0"
},
"scope": 83,
"src": "665:66:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "23b872dd",
"id": 82,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferFrom",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 78,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 73,
"mutability": "mutable",
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 82,
"src": "758:12:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 72,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "758:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 75,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 82,
"src": "772:10:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 74,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "772:7:0",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 77,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 82,
"src": "784:10:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 76,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "784:4:0",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "757:38:0"
},
"returnParameters": {
"id": 81,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 80,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 82,
"src": "814:4:0",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 79,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "814:4:0",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "813:6:0"
},
"scope": 83,
"src": "736:84:0",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 84,
"src": "26:796:0"
}
],
"src": "0:823:0"
},
"id": 0
},
"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinCallee.sol": {
"ast": {
"absolutePath": "@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinCallee.sol",
"exportedSymbols": {
"IPangolinCallee": [
97
]
},
"id": 98,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 85,
"literals": [
"solidity",
">=",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:24:1"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 97,
"linearizedBaseContracts": [
97
],
"name": "IPangolinCallee",
"nodeType": "ContractDefinition",
"nodes": [
{
"functionSelector": "f8890f8e",
"id": 96,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "pangolinCall",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 94,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 87,
"mutability": "mutable",
"name": "sender",
"nodeType": "VariableDeclaration",
"scope": 96,
"src": "80:14:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 86,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "80:7:1",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 89,
"mutability": "mutable",
"name": "amount0",
"nodeType": "VariableDeclaration",
"scope": 96,
"src": "96:12:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 88,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "96:4:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 91,
"mutability": "mutable",
"name": "amount1",
"nodeType": "VariableDeclaration",
"scope": 96,
"src": "110:12:1",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 90,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "110:4:1",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 93,
"mutability": "mutable",
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 96,
"src": "124:19:1",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 92,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "124:5:1",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "79:65:1"
},
"returnParameters": {
"id": 95,
"nodeType": "ParameterList",
"parameters": [],
"src": "153:0:1"
},
"scope": 97,
"src": "58:96:1",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 98,
"src": "26:130:1"
}
],
"src": "0:157:1"
},
"id": 1
},
"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinERC20.sol": {
"ast": {
"absolutePath": "@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinERC20.sol",
"exportedSymbols": {
"IPangolinERC20": [
215
]
},
"id": 216,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 99,
"literals": [
"solidity",
">=",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:24:2"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 215,
"linearizedBaseContracts": [
215
],
"name": "IPangolinERC20",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"id": 107,
"name": "Approval",
"nodeType": "EventDefinition",
"parameters": {
"id": 106,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 101,
"indexed": true,
"mutability": "mutable",
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 107,
"src": "72:21:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 100,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "72:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 103,
"indexed": true,
"mutability": "mutable",
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 107,
"src": "95:23:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 102,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "95:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 105,
"indexed": false,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 107,
"src": "120:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 104,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "120:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "71:60:2"
},
"src": "57:75:2"
},
{
"anonymous": false,
"id": 115,
"name": "Transfer",
"nodeType": "EventDefinition",
"parameters": {
"id": 114,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 109,
"indexed": true,
"mutability": "mutable",
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 115,
"src": "152:20:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 108,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "152:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 111,
"indexed": true,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 115,
"src": "174:18:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 110,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "174:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 113,
"indexed": false,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 115,
"src": "194:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 112,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "194:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "151:54:2"
},
"src": "137:69:2"
},
{
"functionSelector": "06fdde03",
"id": 120,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "name",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 116,
"nodeType": "ParameterList",
"parameters": [],
"src": "225:2:2"
},
"returnParameters": {
"id": 119,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 118,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 120,
"src": "251:13:2",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 117,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "251:6:2",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "250:15:2"
},
"scope": 215,
"src": "212:54:2",
"stateMutability": "pure",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "95d89b41",
"id": 125,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "symbol",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 121,
"nodeType": "ParameterList",
"parameters": [],
"src": "286:2:2"
},
"returnParameters": {
"id": 124,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 123,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 125,
"src": "312:13:2",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 122,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "312:6:2",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "311:15:2"
},
"scope": 215,
"src": "271:56:2",
"stateMutability": "pure",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "313ce567",
"id": 130,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "decimals",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 126,
"nodeType": "ParameterList",
"parameters": [],
"src": "349:2:2"
},
"returnParameters": {
"id": 129,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 128,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 130,
"src": "375:5:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 127,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "375:5:2",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
}
],
"src": "374:7:2"
},
"scope": 215,
"src": "332:50:2",
"stateMutability": "pure",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "18160ddd",
"id": 135,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "totalSupply",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 131,
"nodeType": "ParameterList",
"parameters": [],
"src": "407:2:2"
},
"returnParameters": {
"id": 134,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 133,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 135,
"src": "433:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 132,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "433:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "432:6:2"
},
"scope": 215,
"src": "387:52:2",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "70a08231",
"id": 142,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 138,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 137,
"mutability": "mutable",
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 142,
"src": "463:13:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 136,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "463:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "462:15:2"
},
"returnParameters": {
"id": 141,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 140,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 142,
"src": "501:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 139,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "501:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "500:6:2"
},
"scope": 215,
"src": "444:63:2",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "dd62ed3e",
"id": 151,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "allowance",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 147,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 144,
"mutability": "mutable",
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 151,
"src": "531:13:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 143,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "531:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 146,
"mutability": "mutable",
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 151,
"src": "546:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 145,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "546:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "530:32:2"
},
"returnParameters": {
"id": 150,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 149,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 151,
"src": "586:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 148,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "586:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "585:6:2"
},
"scope": 215,
"src": "512:80:2",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "095ea7b3",
"id": 160,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "approve",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 156,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 153,
"mutability": "mutable",
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 160,
"src": "615:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 152,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "615:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 155,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 160,
"src": "632:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 154,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "632:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "614:29:2"
},
"returnParameters": {
"id": 159,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 158,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 160,
"src": "662:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 157,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "662:4:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "661:6:2"
},
"scope": 215,
"src": "598:70:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "a9059cbb",
"id": 169,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 165,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 162,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 169,
"src": "691:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 161,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "691:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 164,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 169,
"src": "703:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 163,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "703:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "690:24:2"
},
"returnParameters": {
"id": 168,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 167,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 169,
"src": "733:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 166,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "733:4:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "732:6:2"
},
"scope": 215,
"src": "673:66:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "23b872dd",
"id": 180,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferFrom",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 176,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 171,
"mutability": "mutable",
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 180,
"src": "766:12:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 170,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "766:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 173,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 180,
"src": "780:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 172,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "780:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 175,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 180,
"src": "792:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 174,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "792:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "765:38:2"
},
"returnParameters": {
"id": 179,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 178,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 180,
"src": "822:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 177,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "822:4:2",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "821:6:2"
},
"scope": 215,
"src": "744:84:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "3644e515",
"id": 185,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "DOMAIN_SEPARATOR",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 181,
"nodeType": "ParameterList",
"parameters": [],
"src": "859:2:2"
},
"returnParameters": {
"id": 184,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 183,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 185,
"src": "885:7:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 182,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "885:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "884:9:2"
},
"scope": 215,
"src": "834:60:2",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "30adf81f",
"id": 190,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "PERMIT_TYPEHASH",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 186,
"nodeType": "ParameterList",
"parameters": [],
"src": "923:2:2"
},
"returnParameters": {
"id": 189,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 188,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 190,
"src": "949:7:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 187,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "949:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "948:9:2"
},
"scope": 215,
"src": "899:59:2",
"stateMutability": "pure",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "7ecebe00",
"id": 197,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "nonces",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 193,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 192,
"mutability": "mutable",
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 197,
"src": "979:13:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 191,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "979:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "978:15:2"
},
"returnParameters": {
"id": 196,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 195,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 197,
"src": "1017:4:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 194,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1017:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1016:6:2"
},
"scope": 215,
"src": "963:60:2",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "d505accf",
"id": 214,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "permit",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 212,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 199,
"mutability": "mutable",
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 214,
"src": "1045:13:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 198,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1045:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 201,
"mutability": "mutable",
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 214,
"src": "1060:15:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 200,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1060:7:2",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 203,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 214,
"src": "1077:10:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 202,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1077:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 205,
"mutability": "mutable",
"name": "deadline",
"nodeType": "VariableDeclaration",
"scope": 214,
"src": "1089:13:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 204,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1089:4:2",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 207,
"mutability": "mutable",
"name": "v",
"nodeType": "VariableDeclaration",
"scope": 214,
"src": "1104:7:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 206,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "1104:5:2",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 209,
"mutability": "mutable",
"name": "r",
"nodeType": "VariableDeclaration",
"scope": 214,
"src": "1113:9:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 208,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1113:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 211,
"mutability": "mutable",
"name": "s",
"nodeType": "VariableDeclaration",
"scope": 214,
"src": "1124:9:2",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 210,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1124:7:2",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "1044:90:2"
},
"returnParameters": {
"id": 213,
"nodeType": "ParameterList",
"parameters": [],
"src": "1143:0:2"
},
"scope": 215,
"src": "1029:115:2",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 216,
"src": "26:1120:2"
}
],
"src": "0:1147:2"
},
"id": 2
},
"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinFactory.sol": {
"ast": {
"absolutePath": "@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinFactory.sol",
"exportedSymbols": {
"IPangolinFactory": [
278
]
},
"id": 279,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 217,
"literals": [
"solidity",
">=",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:24:3"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 278,
"linearizedBaseContracts": [
278
],
"name": "IPangolinFactory",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"id": 227,
"name": "PairCreated",
"nodeType": "EventDefinition",
"parameters": {
"id": 226,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 219,
"indexed": true,
"mutability": "mutable",
"name": "token0",
"nodeType": "VariableDeclaration",
"scope": 227,
"src": "77:22:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 218,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "77:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 221,
"indexed": true,
"mutability": "mutable",
"name": "token1",
"nodeType": "VariableDeclaration",
"scope": 227,
"src": "101:22:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 220,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "101:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 223,
"indexed": false,
"mutability": "mutable",
"name": "pair",
"nodeType": "VariableDeclaration",
"scope": 227,
"src": "125:12:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 222,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "125:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 225,
"indexed": false,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 227,
"src": "139:4:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 224,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "139:4:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "76:68:3"
},
"src": "59:86:3"
},
{
"functionSelector": "017e7e58",
"id": 232,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "feeTo",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 228,
"nodeType": "ParameterList",
"parameters": [],
"src": "165:2:3"
},
"returnParameters": {
"id": 231,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 230,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 232,
"src": "191:7:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 229,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "191:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "190:9:3"
},
"scope": 278,
"src": "151:49:3",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "094b7415",
"id": 237,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "feeToSetter",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 233,
"nodeType": "ParameterList",
"parameters": [],
"src": "225:2:3"
},
"returnParameters": {
"id": 236,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 235,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 237,
"src": "251:7:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 234,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "251:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "250:9:3"
},
"scope": 278,
"src": "205:55:3",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "e6a43905",
"id": 246,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getPair",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 242,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 239,
"mutability": "mutable",
"name": "tokenA",
"nodeType": "VariableDeclaration",
"scope": 246,
"src": "283:14:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 238,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "283:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 241,
"mutability": "mutable",
"name": "tokenB",
"nodeType": "VariableDeclaration",
"scope": 246,
"src": "299:14:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 240,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "299:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "282:32:3"
},
"returnParameters": {
"id": 245,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 244,
"mutability": "mutable",
"name": "pair",
"nodeType": "VariableDeclaration",
"scope": 246,
"src": "338:12:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 243,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "338:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "337:14:3"
},
"scope": 278,
"src": "266:86:3",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "1e3dd18b",
"id": 253,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "allPairs",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 249,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 248,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 253,
"src": "375:4:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 247,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "375:4:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "374:6:3"
},
"returnParameters": {
"id": 252,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 251,
"mutability": "mutable",
"name": "pair",
"nodeType": "VariableDeclaration",
"scope": 253,
"src": "404:12:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 250,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "404:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "403:14:3"
},
"scope": 278,
"src": "357:61:3",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "574f2ba3",
"id": 258,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "allPairsLength",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 254,
"nodeType": "ParameterList",
"parameters": [],
"src": "446:2:3"
},
"returnParameters": {
"id": 257,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 256,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 258,
"src": "472:4:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 255,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "472:4:3",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "471:6:3"
},
"scope": 278,
"src": "423:55:3",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "c9c65396",
"id": 267,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "createPair",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 263,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 260,
"mutability": "mutable",
"name": "tokenA",
"nodeType": "VariableDeclaration",
"scope": 267,
"src": "504:14:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 259,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "504:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 262,
"mutability": "mutable",
"name": "tokenB",
"nodeType": "VariableDeclaration",
"scope": 267,
"src": "520:14:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 261,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "520:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "503:32:3"
},
"returnParameters": {
"id": 266,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 265,
"mutability": "mutable",
"name": "pair",
"nodeType": "VariableDeclaration",
"scope": 267,
"src": "554:12:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 264,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "554:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "553:14:3"
},
"scope": 278,
"src": "484:84:3",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "f46901ed",
"id": 272,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setFeeTo",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 270,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 269,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 272,
"src": "592:7:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 268,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "592:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "591:9:3"
},
"returnParameters": {
"id": 271,
"nodeType": "ParameterList",
"parameters": [],
"src": "609:0:3"
},
"scope": 278,
"src": "574:36:3",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "a2e74af6",
"id": 277,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "setFeeToSetter",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 275,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 274,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 277,
"src": "639:7:3",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 273,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "639:7:3",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "638:9:3"
},
"returnParameters": {
"id": 276,
"nodeType": "ParameterList",
"parameters": [],
"src": "656:0:3"
},
"scope": 278,
"src": "615:42:3",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 279,
"src": "26:633:3"
}
],
"src": "0:660:3"
},
"id": 3
},
"@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinPair.sol": {
"ast": {
"absolutePath": "@pangolindex/exchange-contracts/contracts/pangolin-core/interfaces/IPangolinPair.sol",
"exportedSymbols": {
"IPangolinPair": [
520
]
},
"id": 521,
"nodeType": "SourceUnit",
"nodes": [
{
"id": 280,
"literals": [
"solidity",
">=",
"0.5",
".0"
],
"nodeType": "PragmaDirective",
"src": "0:24:4"
},
{
"abstract": false,
"baseContracts": [],
"contractDependencies": [],
"contractKind": "interface",
"fullyImplemented": false,
"id": 520,
"linearizedBaseContracts": [
520
],
"name": "IPangolinPair",
"nodeType": "ContractDefinition",
"nodes": [
{
"anonymous": false,
"id": 288,
"name": "Approval",
"nodeType": "EventDefinition",
"parameters": {
"id": 287,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 282,
"indexed": true,
"mutability": "mutable",
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 288,
"src": "71:21:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 281,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "71:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 284,
"indexed": true,
"mutability": "mutable",
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 288,
"src": "94:23:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 283,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "94:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 286,
"indexed": false,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 288,
"src": "119:10:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 285,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "119:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "70:60:4"
},
"src": "56:75:4"
},
{
"anonymous": false,
"id": 296,
"name": "Transfer",
"nodeType": "EventDefinition",
"parameters": {
"id": 295,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 290,
"indexed": true,
"mutability": "mutable",
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 296,
"src": "151:20:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 289,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "151:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 292,
"indexed": true,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 296,
"src": "173:18:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 291,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "173:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 294,
"indexed": false,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 296,
"src": "193:10:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 293,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "193:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "150:54:4"
},
"src": "136:69:4"
},
{
"functionSelector": "06fdde03",
"id": 301,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "name",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 297,
"nodeType": "ParameterList",
"parameters": [],
"src": "224:2:4"
},
"returnParameters": {
"id": 300,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 299,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 301,
"src": "250:13:4",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 298,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "250:6:4",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "249:15:4"
},
"scope": 520,
"src": "211:54:4",
"stateMutability": "pure",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "95d89b41",
"id": 306,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "symbol",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 302,
"nodeType": "ParameterList",
"parameters": [],
"src": "285:2:4"
},
"returnParameters": {
"id": 305,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 304,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 306,
"src": "311:13:4",
"stateVariable": false,
"storageLocation": "memory",
"typeDescriptions": {
"typeIdentifier": "t_string_memory_ptr",
"typeString": "string"
},
"typeName": {
"id": 303,
"name": "string",
"nodeType": "ElementaryTypeName",
"src": "311:6:4",
"typeDescriptions": {
"typeIdentifier": "t_string_storage_ptr",
"typeString": "string"
}
},
"visibility": "internal"
}
],
"src": "310:15:4"
},
"scope": 520,
"src": "270:56:4",
"stateMutability": "pure",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "313ce567",
"id": 311,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "decimals",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 307,
"nodeType": "ParameterList",
"parameters": [],
"src": "348:2:4"
},
"returnParameters": {
"id": 310,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 309,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 311,
"src": "374:5:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 308,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "374:5:4",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
}
],
"src": "373:7:4"
},
"scope": 520,
"src": "331:50:4",
"stateMutability": "pure",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "18160ddd",
"id": 316,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "totalSupply",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 312,
"nodeType": "ParameterList",
"parameters": [],
"src": "406:2:4"
},
"returnParameters": {
"id": 315,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 314,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 316,
"src": "432:4:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 313,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "432:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "431:6:4"
},
"scope": 520,
"src": "386:52:4",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "70a08231",
"id": 323,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "balanceOf",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 319,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 318,
"mutability": "mutable",
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 323,
"src": "462:13:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 317,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "462:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "461:15:4"
},
"returnParameters": {
"id": 322,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 321,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 323,
"src": "500:4:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 320,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "500:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "499:6:4"
},
"scope": 520,
"src": "443:63:4",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "dd62ed3e",
"id": 332,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "allowance",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 328,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 325,
"mutability": "mutable",
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 332,
"src": "530:13:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 324,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "530:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 327,
"mutability": "mutable",
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 332,
"src": "545:15:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 326,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "545:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "529:32:4"
},
"returnParameters": {
"id": 331,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 330,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 332,
"src": "585:4:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 329,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "585:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "584:6:4"
},
"scope": 520,
"src": "511:80:4",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "095ea7b3",
"id": 341,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "approve",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 337,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 334,
"mutability": "mutable",
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 341,
"src": "614:15:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 333,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "614:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 336,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 341,
"src": "631:10:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 335,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "631:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "613:29:4"
},
"returnParameters": {
"id": 340,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 339,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 341,
"src": "661:4:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 338,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "661:4:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "660:6:4"
},
"scope": 520,
"src": "597:70:4",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "a9059cbb",
"id": 350,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transfer",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 346,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 343,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 350,
"src": "690:10:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 342,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "690:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 345,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 350,
"src": "702:10:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 344,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "702:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "689:24:4"
},
"returnParameters": {
"id": 349,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 348,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 350,
"src": "732:4:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 347,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "732:4:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "731:6:4"
},
"scope": 520,
"src": "672:66:4",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "23b872dd",
"id": 361,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "transferFrom",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 357,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 352,
"mutability": "mutable",
"name": "from",
"nodeType": "VariableDeclaration",
"scope": 361,
"src": "765:12:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 351,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "765:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 354,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 361,
"src": "779:10:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 353,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "779:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 356,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 361,
"src": "791:10:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 355,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "791:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "764:38:4"
},
"returnParameters": {
"id": 360,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 359,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 361,
"src": "821:4:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
},
"typeName": {
"id": 358,
"name": "bool",
"nodeType": "ElementaryTypeName",
"src": "821:4:4",
"typeDescriptions": {
"typeIdentifier": "t_bool",
"typeString": "bool"
}
},
"visibility": "internal"
}
],
"src": "820:6:4"
},
"scope": 520,
"src": "743:84:4",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "3644e515",
"id": 366,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "DOMAIN_SEPARATOR",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 362,
"nodeType": "ParameterList",
"parameters": [],
"src": "858:2:4"
},
"returnParameters": {
"id": 365,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 364,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 366,
"src": "884:7:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 363,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "884:7:4",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "883:9:4"
},
"scope": 520,
"src": "833:60:4",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "30adf81f",
"id": 371,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "PERMIT_TYPEHASH",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 367,
"nodeType": "ParameterList",
"parameters": [],
"src": "922:2:4"
},
"returnParameters": {
"id": 370,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 369,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 371,
"src": "948:7:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 368,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "948:7:4",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "947:9:4"
},
"scope": 520,
"src": "898:59:4",
"stateMutability": "pure",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "7ecebe00",
"id": 378,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "nonces",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 374,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 373,
"mutability": "mutable",
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 378,
"src": "978:13:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 372,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "978:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "977:15:4"
},
"returnParameters": {
"id": 377,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 376,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 378,
"src": "1016:4:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 375,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1016:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1015:6:4"
},
"scope": 520,
"src": "962:60:4",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "d505accf",
"id": 395,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "permit",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 393,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 380,
"mutability": "mutable",
"name": "owner",
"nodeType": "VariableDeclaration",
"scope": 395,
"src": "1044:13:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 379,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1044:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 382,
"mutability": "mutable",
"name": "spender",
"nodeType": "VariableDeclaration",
"scope": 395,
"src": "1059:15:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 381,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1059:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 384,
"mutability": "mutable",
"name": "value",
"nodeType": "VariableDeclaration",
"scope": 395,
"src": "1076:10:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 383,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1076:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 386,
"mutability": "mutable",
"name": "deadline",
"nodeType": "VariableDeclaration",
"scope": 395,
"src": "1088:13:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 385,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1088:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 388,
"mutability": "mutable",
"name": "v",
"nodeType": "VariableDeclaration",
"scope": 395,
"src": "1103:7:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
},
"typeName": {
"id": 387,
"name": "uint8",
"nodeType": "ElementaryTypeName",
"src": "1103:5:4",
"typeDescriptions": {
"typeIdentifier": "t_uint8",
"typeString": "uint8"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 390,
"mutability": "mutable",
"name": "r",
"nodeType": "VariableDeclaration",
"scope": 395,
"src": "1112:9:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 389,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1112:7:4",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 392,
"mutability": "mutable",
"name": "s",
"nodeType": "VariableDeclaration",
"scope": 395,
"src": "1123:9:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
},
"typeName": {
"id": 391,
"name": "bytes32",
"nodeType": "ElementaryTypeName",
"src": "1123:7:4",
"typeDescriptions": {
"typeIdentifier": "t_bytes32",
"typeString": "bytes32"
}
},
"visibility": "internal"
}
],
"src": "1043:90:4"
},
"returnParameters": {
"id": 394,
"nodeType": "ParameterList",
"parameters": [],
"src": "1142:0:4"
},
"scope": 520,
"src": "1028:115:4",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"anonymous": false,
"id": 403,
"name": "Mint",
"nodeType": "EventDefinition",
"parameters": {
"id": 402,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 397,
"indexed": true,
"mutability": "mutable",
"name": "sender",
"nodeType": "VariableDeclaration",
"scope": 403,
"src": "1160:22:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 396,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1160:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 399,
"indexed": false,
"mutability": "mutable",
"name": "amount0",
"nodeType": "VariableDeclaration",
"scope": 403,
"src": "1184:12:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 398,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1184:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 401,
"indexed": false,
"mutability": "mutable",
"name": "amount1",
"nodeType": "VariableDeclaration",
"scope": 403,
"src": "1198:12:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 400,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1198:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1159:52:4"
},
"src": "1149:63:4"
},
{
"anonymous": false,
"id": 413,
"name": "Burn",
"nodeType": "EventDefinition",
"parameters": {
"id": 412,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 405,
"indexed": true,
"mutability": "mutable",
"name": "sender",
"nodeType": "VariableDeclaration",
"scope": 413,
"src": "1228:22:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 404,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1228:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 407,
"indexed": false,
"mutability": "mutable",
"name": "amount0",
"nodeType": "VariableDeclaration",
"scope": 413,
"src": "1252:12:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 406,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1252:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 409,
"indexed": false,
"mutability": "mutable",
"name": "amount1",
"nodeType": "VariableDeclaration",
"scope": 413,
"src": "1266:12:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 408,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1266:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 411,
"indexed": true,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 413,
"src": "1280:18:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 410,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1280:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1227:72:4"
},
"src": "1217:83:4"
},
{
"anonymous": false,
"id": 427,
"name": "Swap",
"nodeType": "EventDefinition",
"parameters": {
"id": 426,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 415,
"indexed": true,
"mutability": "mutable",
"name": "sender",
"nodeType": "VariableDeclaration",
"scope": 427,
"src": "1325:22:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 414,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1325:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 417,
"indexed": false,
"mutability": "mutable",
"name": "amount0In",
"nodeType": "VariableDeclaration",
"scope": 427,
"src": "1357:14:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 416,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1357:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 419,
"indexed": false,
"mutability": "mutable",
"name": "amount1In",
"nodeType": "VariableDeclaration",
"scope": 427,
"src": "1381:14:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 418,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1381:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 421,
"indexed": false,
"mutability": "mutable",
"name": "amount0Out",
"nodeType": "VariableDeclaration",
"scope": 427,
"src": "1405:15:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 420,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1405:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 423,
"indexed": false,
"mutability": "mutable",
"name": "amount1Out",
"nodeType": "VariableDeclaration",
"scope": 427,
"src": "1430:15:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 422,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1430:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 425,
"indexed": true,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 427,
"src": "1455:18:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 424,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1455:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1315:164:4"
},
"src": "1305:175:4"
},
{
"anonymous": false,
"id": 433,
"name": "Sync",
"nodeType": "EventDefinition",
"parameters": {
"id": 432,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 429,
"indexed": false,
"mutability": "mutable",
"name": "reserve0",
"nodeType": "VariableDeclaration",
"scope": 433,
"src": "1496:16:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint112",
"typeString": "uint112"
},
"typeName": {
"id": 428,
"name": "uint112",
"nodeType": "ElementaryTypeName",
"src": "1496:7:4",
"typeDescriptions": {
"typeIdentifier": "t_uint112",
"typeString": "uint112"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 431,
"indexed": false,
"mutability": "mutable",
"name": "reserve1",
"nodeType": "VariableDeclaration",
"scope": 433,
"src": "1514:16:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint112",
"typeString": "uint112"
},
"typeName": {
"id": 430,
"name": "uint112",
"nodeType": "ElementaryTypeName",
"src": "1514:7:4",
"typeDescriptions": {
"typeIdentifier": "t_uint112",
"typeString": "uint112"
}
},
"visibility": "internal"
}
],
"src": "1495:36:4"
},
"src": "1485:47:4"
},
{
"functionSelector": "ba9a7a56",
"id": 438,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "MINIMUM_LIQUIDITY",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 434,
"nodeType": "ParameterList",
"parameters": [],
"src": "1564:2:4"
},
"returnParameters": {
"id": 437,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 436,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 438,
"src": "1590:4:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 435,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1590:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1589:6:4"
},
"scope": 520,
"src": "1538:58:4",
"stateMutability": "pure",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "c45a0155",
"id": 443,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "factory",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 439,
"nodeType": "ParameterList",
"parameters": [],
"src": "1617:2:4"
},
"returnParameters": {
"id": 442,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 441,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 443,
"src": "1643:7:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 440,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1643:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1642:9:4"
},
"scope": 520,
"src": "1601:51:4",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "0dfe1681",
"id": 448,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "token0",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 444,
"nodeType": "ParameterList",
"parameters": [],
"src": "1672:2:4"
},
"returnParameters": {
"id": 447,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 446,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 448,
"src": "1698:7:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 445,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1698:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1697:9:4"
},
"scope": 520,
"src": "1657:50:4",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "d21220a7",
"id": 453,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "token1",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 449,
"nodeType": "ParameterList",
"parameters": [],
"src": "1727:2:4"
},
"returnParameters": {
"id": 452,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 451,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 453,
"src": "1753:7:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 450,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "1753:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "1752:9:4"
},
"scope": 520,
"src": "1712:50:4",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "0902f1ac",
"id": 462,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "getReserves",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 454,
"nodeType": "ParameterList",
"parameters": [],
"src": "1787:2:4"
},
"returnParameters": {
"id": 461,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 456,
"mutability": "mutable",
"name": "reserve0",
"nodeType": "VariableDeclaration",
"scope": 462,
"src": "1813:16:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint112",
"typeString": "uint112"
},
"typeName": {
"id": 455,
"name": "uint112",
"nodeType": "ElementaryTypeName",
"src": "1813:7:4",
"typeDescriptions": {
"typeIdentifier": "t_uint112",
"typeString": "uint112"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 458,
"mutability": "mutable",
"name": "reserve1",
"nodeType": "VariableDeclaration",
"scope": 462,
"src": "1831:16:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint112",
"typeString": "uint112"
},
"typeName": {
"id": 457,
"name": "uint112",
"nodeType": "ElementaryTypeName",
"src": "1831:7:4",
"typeDescriptions": {
"typeIdentifier": "t_uint112",
"typeString": "uint112"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 460,
"mutability": "mutable",
"name": "blockTimestampLast",
"nodeType": "VariableDeclaration",
"scope": 462,
"src": "1849:25:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
},
"typeName": {
"id": 459,
"name": "uint32",
"nodeType": "ElementaryTypeName",
"src": "1849:6:4",
"typeDescriptions": {
"typeIdentifier": "t_uint32",
"typeString": "uint32"
}
},
"visibility": "internal"
}
],
"src": "1812:63:4"
},
"scope": 520,
"src": "1767:109:4",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "5909c0d5",
"id": 467,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "price0CumulativeLast",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 463,
"nodeType": "ParameterList",
"parameters": [],
"src": "1910:2:4"
},
"returnParameters": {
"id": 466,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 465,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 467,
"src": "1936:4:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 464,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "1936:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "1935:6:4"
},
"scope": 520,
"src": "1881:61:4",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "5a3d5493",
"id": 472,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "price1CumulativeLast",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 468,
"nodeType": "ParameterList",
"parameters": [],
"src": "1976:2:4"
},
"returnParameters": {
"id": 471,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 470,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 472,
"src": "2002:4:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 469,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "2002:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "2001:6:4"
},
"scope": 520,
"src": "1947:61:4",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "7464fc3d",
"id": 477,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "kLast",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 473,
"nodeType": "ParameterList",
"parameters": [],
"src": "2027:2:4"
},
"returnParameters": {
"id": 476,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 475,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 477,
"src": "2053:4:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 474,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "2053:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "2052:6:4"
},
"scope": 520,
"src": "2013:46:4",
"stateMutability": "view",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "6a627842",
"id": 484,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "mint",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 480,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 479,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 484,
"src": "2079:10:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 478,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2079:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2078:12:4"
},
"returnParameters": {
"id": 483,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 482,
"mutability": "mutable",
"name": "liquidity",
"nodeType": "VariableDeclaration",
"scope": 484,
"src": "2109:14:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 481,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "2109:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "2108:16:4"
},
"scope": 520,
"src": "2065:60:4",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "89afcb44",
"id": 493,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "burn",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 487,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 486,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 493,
"src": "2144:10:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 485,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2144:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2143:12:4"
},
"returnParameters": {
"id": 492,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 489,
"mutability": "mutable",
"name": "amount0",
"nodeType": "VariableDeclaration",
"scope": 493,
"src": "2174:12:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 488,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "2174:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 491,
"mutability": "mutable",
"name": "amount1",
"nodeType": "VariableDeclaration",
"scope": 493,
"src": "2188:12:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 490,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "2188:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
}
],
"src": "2173:28:4"
},
"scope": 520,
"src": "2130:72:4",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "022c0d9f",
"id": 504,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "swap",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 502,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 495,
"mutability": "mutable",
"name": "amount0Out",
"nodeType": "VariableDeclaration",
"scope": 504,
"src": "2221:15:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 494,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "2221:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 497,
"mutability": "mutable",
"name": "amount1Out",
"nodeType": "VariableDeclaration",
"scope": 504,
"src": "2238:15:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
},
"typeName": {
"id": 496,
"name": "uint",
"nodeType": "ElementaryTypeName",
"src": "2238:4:4",
"typeDescriptions": {
"typeIdentifier": "t_uint256",
"typeString": "uint256"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 499,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 504,
"src": "2255:10:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 498,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2255:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 501,
"mutability": "mutable",
"name": "data",
"nodeType": "VariableDeclaration",
"scope": 504,
"src": "2267:19:4",
"stateVariable": false,
"storageLocation": "calldata",
"typeDescriptions": {
"typeIdentifier": "t_bytes_calldata_ptr",
"typeString": "bytes"
},
"typeName": {
"id": 500,
"name": "bytes",
"nodeType": "ElementaryTypeName",
"src": "2267:5:4",
"typeDescriptions": {
"typeIdentifier": "t_bytes_storage_ptr",
"typeString": "bytes"
}
},
"visibility": "internal"
}
],
"src": "2220:67:4"
},
"returnParameters": {
"id": 503,
"nodeType": "ParameterList",
"parameters": [],
"src": "2296:0:4"
},
"scope": 520,
"src": "2207:90:4",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "bc25cf77",
"id": 509,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "skim",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 507,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 506,
"mutability": "mutable",
"name": "to",
"nodeType": "VariableDeclaration",
"scope": 509,
"src": "2316:10:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 505,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2316:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2315:12:4"
},
"returnParameters": {
"id": 508,
"nodeType": "ParameterList",
"parameters": [],
"src": "2336:0:4"
},
"scope": 520,
"src": "2302:35:4",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "fff6cae9",
"id": 512,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "sync",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 510,
"nodeType": "ParameterList",
"parameters": [],
"src": "2355:2:4"
},
"returnParameters": {
"id": 511,
"nodeType": "ParameterList",
"parameters": [],
"src": "2366:0:4"
},
"scope": 520,
"src": "2342:25:4",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
},
{
"functionSelector": "485cc955",
"id": 519,
"implemented": false,
"kind": "function",
"modifiers": [],
"name": "initialize",
"nodeType": "FunctionDefinition",
"parameters": {
"id": 517,
"nodeType": "ParameterList",
"parameters": [
{
"constant": false,
"id": 514,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 519,
"src": "2393:7:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 513,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2393:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
},
{
"constant": false,
"id": 516,
"mutability": "mutable",
"name": "",
"nodeType": "VariableDeclaration",
"scope": 519,
"src": "2402:7:4",
"stateVariable": false,
"storageLocation": "default",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
},
"typeName": {
"id": 515,
"name": "address",
"nodeType": "ElementaryTypeName",
"src": "2402:7:4",
"stateMutability": "nonpayable",
"typeDescriptions": {
"typeIdentifier": "t_address",
"typeString": "address"
}
},
"visibility": "internal"
}
],
"src": "2392:18:4"
},
"returnParameters": {
"id": 518,
"nodeType": "ParameterList",
"parameters": [],
"src": "2419:0:4"
},
"scope": 520,
"src": "2373:47:4",
"stateMutability": "nonpayable",
"virtual": false,
"visibility": "external"
}
],
"scope": 521,
"src": "26:2396:4"
}
],
"src": "0:2423:4"
},
"id": 4
}
}
}
}