Module brontes_classifier::DodoDPPFactory
source · Expand description
Generated by the following Solidity interface…
interface DodoDPPFactory {
event NewDPP(address baseToken, address quoteToken, address creator, address dpp);
event OwnershipTransferPrepared(address indexed previousOwner, address indexed newOwner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event RemoveDPP(address dpp);
event addAdmin(address admin);
event removeAdmin(address admin);
constructor(address cloneFactory, address dppTemplate, address dppAdminTemplate, address defaultMaintainer, address defaultMtFeeRateModel, address dodoApproveProxy);
function _CLONE_FACTORY_() external view returns (address);
function _DEFAULT_MAINTAINER_() external view returns (address);
function _DEFAULT_MT_FEE_RATE_MODEL_() external view returns (address);
function _DODO_APPROVE_PROXY_() external view returns (address);
function _DPP_ADMIN_TEMPLATE_() external view returns (address);
function _DPP_TEMPLATE_() external view returns (address);
function _NEW_OWNER_() external view returns (address);
function _OWNER_() external view returns (address);
function _REGISTRY_(address, address, uint256) external view returns (address);
function _USER_REGISTRY_(address, uint256) external view returns (address);
function addAdminList(address contractAddr) external;
function addPoolByAdmin(address creator, address baseToken, address quoteToken, address pool) external;
function batchAddPoolByAdmin(address[] memory creators, address[] memory baseTokens, address[] memory quoteTokens, address[] memory pools) external;
function claimOwnership() external;
function createDODOPrivatePool() external returns (address newPrivatePool);
function getDODOPool(address baseToken, address quoteToken) external view returns (address[] memory pools);
function getDODOPoolBidirection(address token0, address token1) external view returns (address[] memory baseToken0Pool, address[] memory baseToken1Pool);
function getDODOPoolByUser(address user) external view returns (address[] memory pools);
function initDODOPrivatePool(address dppAddress, address creator, address baseToken, address quoteToken, uint256 lpFeeRate, uint256 k, uint256 i, bool isOpenTwap) external;
function initOwner(address newOwner) external;
function isAdminListed(address) external view returns (bool);
function removeAdminList(address contractAddr) external;
function removePoolByAdmin(address creator, address baseToken, address quoteToken, address pool) external;
function transferOwnership(address newOwner) external;
function updateAdminTemplate(address _newDPPAdminTemplate) external;
function updateDefaultMaintainer(address _newMaintainer) external;
function updateDppTemplate(address _newDPPTemplate) external;
}
…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [
{
"name": "cloneFactory",
"type": "address",
"internalType": "address"
},
{
"name": "dppTemplate",
"type": "address",
"internalType": "address"
},
{
"name": "dppAdminTemplate",
"type": "address",
"internalType": "address"
},
{
"name": "defaultMaintainer",
"type": "address",
"internalType": "address"
},
{
"name": "defaultMtFeeRateModel",
"type": "address",
"internalType": "address"
},
{
"name": "dodoApproveProxy",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "_CLONE_FACTORY_",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "_DEFAULT_MAINTAINER_",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "_DEFAULT_MT_FEE_RATE_MODEL_",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "_DODO_APPROVE_PROXY_",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "_DPP_ADMIN_TEMPLATE_",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "_DPP_TEMPLATE_",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "_NEW_OWNER_",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "_OWNER_",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "_REGISTRY_",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "_USER_REGISTRY_",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "addAdminList",
"inputs": [
{
"name": "contractAddr",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "addPoolByAdmin",
"inputs": [
{
"name": "creator",
"type": "address",
"internalType": "address"
},
{
"name": "baseToken",
"type": "address",
"internalType": "address"
},
{
"name": "quoteToken",
"type": "address",
"internalType": "address"
},
{
"name": "pool",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "batchAddPoolByAdmin",
"inputs": [
{
"name": "creators",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "baseTokens",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "quoteTokens",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "pools",
"type": "address[]",
"internalType": "address[]"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "claimOwnership",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "createDODOPrivatePool",
"inputs": [],
"outputs": [
{
"name": "newPrivatePool",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getDODOPool",
"inputs": [
{
"name": "baseToken",
"type": "address",
"internalType": "address"
},
{
"name": "quoteToken",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "pools",
"type": "address[]",
"internalType": "address[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getDODOPoolBidirection",
"inputs": [
{
"name": "token0",
"type": "address",
"internalType": "address"
},
{
"name": "token1",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "baseToken0Pool",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "baseToken1Pool",
"type": "address[]",
"internalType": "address[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getDODOPoolByUser",
"inputs": [
{
"name": "user",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "pools",
"type": "address[]",
"internalType": "address[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "initDODOPrivatePool",
"inputs": [
{
"name": "dppAddress",
"type": "address",
"internalType": "address"
},
{
"name": "creator",
"type": "address",
"internalType": "address"
},
{
"name": "baseToken",
"type": "address",
"internalType": "address"
},
{
"name": "quoteToken",
"type": "address",
"internalType": "address"
},
{
"name": "lpFeeRate",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "k",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "i",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "isOpenTwap",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "initOwner",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "isAdminListed",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "removeAdminList",
"inputs": [
{
"name": "contractAddr",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "removePoolByAdmin",
"inputs": [
{
"name": "creator",
"type": "address",
"internalType": "address"
},
{
"name": "baseToken",
"type": "address",
"internalType": "address"
},
{
"name": "quoteToken",
"type": "address",
"internalType": "address"
},
{
"name": "pool",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "transferOwnership",
"inputs": [
{
"name": "newOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updateAdminTemplate",
"inputs": [
{
"name": "_newDPPAdminTemplate",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updateDefaultMaintainer",
"inputs": [
{
"name": "_newMaintainer",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "updateDppTemplate",
"inputs": [
{
"name": "_newDPPTemplate",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "NewDPP",
"inputs": [
{
"name": "baseToken",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "quoteToken",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "creator",
"type": "address",
"indexed": false,
"internalType": "address"
},
{
"name": "dpp",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipTransferPrepared",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipTransferred",
"inputs": [
{
"name": "previousOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RemoveDPP",
"inputs": [
{
"name": "dpp",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "addAdmin",
"inputs": [
{
"name": "admin",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "removeAdmin",
"inputs": [
{
"name": "admin",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
}
]
Structs§
- Event with signature
NewDPP(address,address,address,address)
and selector0x8494fe594cd5087021d4b11758a2bbc7be28a430e94f2b268d668e5991ed3b8a
. - Event with signature
OwnershipTransferPrepared(address,address)
and selector0xdcf55418cee3220104fef63f979ff3c4097ad240c0c43dcb33ce837748983e62
. - Event with signature
OwnershipTransferred(address,address)
and selector0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0
. - Event with signature
RemoveDPP(address)
and selector0xafed4f6701f0e943874e915e49e2e7b67ae31f18e083f540e890af2275aa116d
. - Function with signature
_CLONE_FACTORY_()
and selector0xeb774d05
. - Container type for the return parameters of the
_CLONE_FACTORY_()
function. - Function with signature
_DEFAULT_MAINTAINER_()
and selector0x81ab4d0a
. - Container type for the return parameters of the
_DEFAULT_MAINTAINER_()
function. - Function with signature
_DEFAULT_MT_FEE_RATE_MODEL_()
and selector0x6c5ccb9b
. - Container type for the return parameters of the
_DEFAULT_MT_FEE_RATE_MODEL_()
function. - Function with signature
_DODO_APPROVE_PROXY_()
and selector0xeb99be12
. - Container type for the return parameters of the
_DODO_APPROVE_PROXY_()
function. - Function with signature
_DPP_ADMIN_TEMPLATE_()
and selector0x633644d6
. - Container type for the return parameters of the
_DPP_ADMIN_TEMPLATE_()
function. - Function with signature
_DPP_TEMPLATE_()
and selector0xace378ca
. - Container type for the return parameters of the
_DPP_TEMPLATE_()
function. - Function with signature
_NEW_OWNER_()
and selector0x8456db15
. - Container type for the return parameters of the
_NEW_OWNER_()
function. - Function with signature
_OWNER_()
and selector0x16048bc4
. - Container type for the return parameters of the
_OWNER_()
function. - Function with signature
_REGISTRY_(address,address,uint256)
and selector0xbdeb0a91
. - Container type for the return parameters of the
_REGISTRY_(address,address,uint256)
function. - Function with signature
_USER_REGISTRY_(address,uint256)
and selector0xa58888db
. - Container type for the return parameters of the
_USER_REGISTRY_(address,uint256)
function. - Event with signature
addAdmin(address)
and selector0x7048027520ecbaa8947764cd502c5c78c2c53bbd902e06b108da1cbdf98c6fc4
. - Function with signature
addAdminList(address)
and selector0xae52aae7
. - Container type for the return parameters of the
addAdminList(address)
function. - Function with signature
addPoolByAdmin(address,address,address,address)
and selector0x39d00ef9
. - Container type for the return parameters of the
addPoolByAdmin(address,address,address,address)
function. - Function with signature
batchAddPoolByAdmin(address[],address[],address[],address[])
and selector0x182e8dbb
. - Container type for the return parameters of the
batchAddPoolByAdmin(address[],address[],address[],address[])
function. - Function with signature
claimOwnership()
and selector0x4e71e0c8
. - Container type for the return parameters of the
claimOwnership()
function. - Constructor`.
- Function with signature
createDODOPrivatePool()
and selector0x09b8adb8
. - Container type for the return parameters of the
createDODOPrivatePool()
function. - Function with signature
getDODOPoolBidirection(address,address)
and selector0x794e5538
. - Container type for the return parameters of the
getDODOPoolBidirection(address,address)
function. - Function with signature
getDODOPoolByUser(address)
and selector0xe65f7029
. - Container type for the return parameters of the
getDODOPoolByUser(address)
function. - Function with signature
getDODOPool(address,address)
and selector0x57a281dc
. - Container type for the return parameters of the
getDODOPool(address,address)
function. - Function with signature
initDODOPrivatePool(address,address,address,address,uint256,uint256,uint256,bool)
and selector0x195eefe0
. - Container type for the return parameters of the
initDODOPrivatePool(address,address,address,address,uint256,uint256,uint256,bool)
function. - Function with signature
initOwner(address)
and selector0x0d009297
. - Container type for the return parameters of the
initOwner(address)
function. - Function with signature
isAdminListed(address)
and selector0x1822c0c0
. - Container type for the return parameters of the
isAdminListed(address)
function. - Event with signature
removeAdmin(address)
and selector0x1785f53c768259a7ab38ed67e958aab075b56ff206e3d7f29ea4ca203d1a9774
. - Function with signature
removeAdminList(address)
and selector0xfd8bd849
. - Container type for the return parameters of the
removeAdminList(address)
function. - Function with signature
removePoolByAdmin(address,address,address,address)
and selector0x43274b82
. - Container type for the return parameters of the
removePoolByAdmin(address,address,address,address)
function. - Function with signature
transferOwnership(address)
and selector0xf2fde38b
. - Container type for the return parameters of the
transferOwnership(address)
function. - Function with signature
updateAdminTemplate(address)
and selector0x7d2c82d7
. - Container type for the return parameters of the
updateAdminTemplate(address)
function. - Function with signature
updateDefaultMaintainer(address)
and selector0x9e988ee3
. - Container type for the return parameters of the
updateDefaultMaintainer(address)
function. - Function with signature
updateDppTemplate(address)
and selector0x44b7f78e
. - Container type for the return parameters of the
updateDppTemplate(address)
function.
Enums§
- Container for all the
DodoDPPFactory
function calls. - Container for all the
DodoDPPFactory
events.