Module brontes_classifier::UniswapV2
source · Expand description
Generated by the following Solidity interface…
interface UniswapV2 {
event Approval(address indexed owner, address indexed spender, uint256 value);
event Burn(address indexed sender, uint256 amount0, uint256 amount1, address indexed to);
event Mint(address indexed sender, uint256 amount0, uint256 amount1);
event Swap(address indexed sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address indexed to);
event Sync(uint112 reserve0, uint112 reserve1);
event Transfer(address indexed from, address indexed to, uint256 value);
constructor();
function DOMAIN_SEPARATOR() external view returns (bytes32);
function MINIMUM_LIQUIDITY() external view returns (uint256);
function PERMIT_TYPEHASH() external view returns (bytes32);
function allowance(address, address) external view returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function balanceOf(address) external view returns (uint256);
function burn(address to) external returns (uint256 amount0, uint256 amount1);
function decimals() external view returns (uint8);
function factory() external view returns (address);
function getReserves() external view returns (uint112 _reserve0, uint112 _reserve1, uint32 _blockTimestampLast);
function initialize(address _token0, address _token1) external;
function kLast() external view returns (uint256);
function mint(address to) external returns (uint256 liquidity);
function name() external view returns (string memory);
function nonces(address) external view returns (uint256);
function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external;
function price0CumulativeLast() external view returns (uint256);
function price1CumulativeLast() external view returns (uint256);
function skim(address to) external;
function swap(uint256 amount0Out, uint256 amount1Out, address to, bytes memory data) external;
function symbol() external view returns (string memory);
function sync() external;
function token0() external view returns (address);
function token1() external view returns (address);
function totalSupply() external view returns (uint256);
function transfer(address to, uint256 value) external returns (bool);
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "DOMAIN_SEPARATOR",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "MINIMUM_LIQUIDITY",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "PERMIT_TYPEHASH",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "allowance",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "approve",
"inputs": [
{
"name": "spender",
"type": "address",
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "balanceOf",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "burn",
"inputs": [
{
"name": "to",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "amount0",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount1",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "decimals",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint8",
"internalType": "uint8"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "factory",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getReserves",
"inputs": [],
"outputs": [
{
"name": "_reserve0",
"type": "uint112",
"internalType": "uint112"
},
{
"name": "_reserve1",
"type": "uint112",
"internalType": "uint112"
},
{
"name": "_blockTimestampLast",
"type": "uint32",
"internalType": "uint32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "initialize",
"inputs": [
{
"name": "_token0",
"type": "address",
"internalType": "address"
},
{
"name": "_token1",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "kLast",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "mint",
"inputs": [
{
"name": "to",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "liquidity",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "name",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "nonces",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "permit",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
},
{
"name": "spender",
"type": "address",
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "deadline",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "v",
"type": "uint8",
"internalType": "uint8"
},
{
"name": "r",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "s",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "price0CumulativeLast",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "price1CumulativeLast",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "skim",
"inputs": [
{
"name": "to",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "swap",
"inputs": [
{
"name": "amount0Out",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "amount1Out",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "symbol",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "sync",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "token0",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "token1",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "totalSupply",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "transfer",
"inputs": [
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transferFrom",
"inputs": [
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "Approval",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "spender",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Burn",
"inputs": [
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount0",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "amount1",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Mint",
"inputs": [
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount0",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
},
{
"name": "amount1",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Swap",
"inputs": [
{
"name": "sender",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"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": false,
"internalType": "uint256"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Sync",
"inputs": [
{
"name": "reserve0",
"type": "uint112",
"indexed": false,
"internalType": "uint112"
},
{
"name": "reserve1",
"type": "uint112",
"indexed": false,
"internalType": "uint112"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Transfer",
"inputs": [
{
"name": "from",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "value",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
}
]
Structs§
- Event with signature
Approval(address,address,uint256)
and selector0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925
. - Event with signature
Burn(address,uint256,uint256,address)
and selector0xdccd412f0b1252819cb1fd330b93224ca42612892bb3f4f789976e6d81936496
. - Function with signature
DOMAIN_SEPARATOR()
and selector0x3644e515
. - Container type for the return parameters of the
DOMAIN_SEPARATOR()
function. - Function with signature
MINIMUM_LIQUIDITY()
and selector0xba9a7a56
. - Container type for the return parameters of the
MINIMUM_LIQUIDITY()
function. - Event with signature
Mint(address,uint256,uint256)
and selector0x4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f
. - Function with signature
PERMIT_TYPEHASH()
and selector0x30adf81f
. - Container type for the return parameters of the
PERMIT_TYPEHASH()
function. - Event with signature
Swap(address,uint256,uint256,uint256,uint256,address)
and selector0xd78ad95fa46c994b6551d0da85fc275fe613ce37657fb8d5e3d130840159d822
. - Event with signature
Sync(uint112,uint112)
and selector0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1
. - Event with signature
Transfer(address,address,uint256)
and selector0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef
. - Function with signature
allowance(address,address)
and selector0xdd62ed3e
. - Container type for the return parameters of the
allowance(address,address)
function. - Function with signature
approve(address,uint256)
and selector0x095ea7b3
. - Container type for the return parameters of the
approve(address,uint256)
function. - Function with signature
balanceOf(address)
and selector0x70a08231
. - Container type for the return parameters of the
balanceOf(address)
function. - Function with signature
burn(address)
and selector0x89afcb44
. - Container type for the return parameters of the
burn(address)
function. - Constructor`.
- Function with signature
decimals()
and selector0x313ce567
. - Container type for the return parameters of the
decimals()
function. - Function with signature
factory()
and selector0xc45a0155
. - Container type for the return parameters of the
factory()
function. - Function with signature
getReserves()
and selector0x0902f1ac
. - Container type for the return parameters of the
getReserves()
function. - Function with signature
initialize(address,address)
and selector0x485cc955
. - Container type for the return parameters of the
initialize(address,address)
function. - Function with signature
kLast()
and selector0x7464fc3d
. - Container type for the return parameters of the
kLast()
function. - Function with signature
mint(address)
and selector0x6a627842
. - Container type for the return parameters of the
mint(address)
function. - Function with signature
name()
and selector0x06fdde03
. - Container type for the return parameters of the
name()
function. - Function with signature
nonces(address)
and selector0x7ecebe00
. - Container type for the return parameters of the
nonces(address)
function. - Function with signature
permit(address,address,uint256,uint256,uint8,bytes32,bytes32)
and selector0xd505accf
. - Container type for the return parameters of the
permit(address,address,uint256,uint256,uint8,bytes32,bytes32)
function. - Function with signature
price0CumulativeLast()
and selector0x5909c0d5
. - Container type for the return parameters of the
price0CumulativeLast()
function. - Function with signature
price1CumulativeLast()
and selector0x5a3d5493
. - Container type for the return parameters of the
price1CumulativeLast()
function. - Function with signature
skim(address)
and selector0xbc25cf77
. - Container type for the return parameters of the
skim(address)
function. - Function with signature
swap(uint256,uint256,address,bytes)
and selector0x022c0d9f
. - Container type for the return parameters of the
swap(uint256,uint256,address,bytes)
function. - Function with signature
symbol()
and selector0x95d89b41
. - Container type for the return parameters of the
symbol()
function. - Function with signature
sync()
and selector0xfff6cae9
. - Container type for the return parameters of the
sync()
function. - Function with signature
token0()
and selector0x0dfe1681
. - Container type for the return parameters of the
token0()
function. - Function with signature
token1()
and selector0xd21220a7
. - Container type for the return parameters of the
token1()
function. - Function with signature
totalSupply()
and selector0x18160ddd
. - Container type for the return parameters of the
totalSupply()
function. - Function with signature
transfer(address,uint256)
and selector0xa9059cbb
. - Function with signature
transferFrom(address,address,uint256)
and selector0x23b872dd
. - Container type for the return parameters of the
transferFrom(address,address,uint256)
function. - Container type for the return parameters of the
transfer(address,uint256)
function.