Module brontes_classifier::DodoDSPFactory
source · Expand description
Generated by the following Solidity interface…
interface DodoDSPFactory {
event NewDSP(address baseToken, address quoteToken, address creator, address DSP);
event OwnershipTransferPrepared(address indexed previousOwner, address indexed newOwner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event RemoveDSP(address DSP);
constructor(address cloneFactory, address DSPTemplate, address defaultMaintainer, address defaultMtFeeRateModel);
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 _DSP_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 addPoolByAdmin(address creator, address baseToken, address quoteToken, address pool) external;
function claimOwnership() external;
function createDODOStablePool(address baseToken, address quoteToken, uint256 lpFeeRate, uint256 i, uint256 k, bool isOpenTWAP) external returns (address newStablePool);
function getDODOPool(address baseToken, address quoteToken) external view returns (address[] memory machines);
function getDODOPoolBidirection(address token0, address token1) external view returns (address[] memory baseToken0Machines, address[] memory baseToken1Machines);
function getDODOPoolByUser(address user) external view returns (address[] memory machines);
function initOwner(address newOwner) external;
function removePoolByAdmin(address creator, address baseToken, address quoteToken, address pool) external;
function transferOwnership(address newOwner) external;
function updateDSPTemplate(address _newDSPTemplate) external;
}
…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [
{
"name": "cloneFactory",
"type": "address",
"internalType": "address"
},
{
"name": "DSPTemplate",
"type": "address",
"internalType": "address"
},
{
"name": "defaultMaintainer",
"type": "address",
"internalType": "address"
},
{
"name": "defaultMtFeeRateModel",
"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": "_DSP_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": "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": "claimOwnership",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "createDODOStablePool",
"inputs": [
{
"name": "baseToken",
"type": "address",
"internalType": "address"
},
{
"name": "quoteToken",
"type": "address",
"internalType": "address"
},
{
"name": "lpFeeRate",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "i",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "k",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "isOpenTWAP",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [
{
"name": "newStablePool",
"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": "machines",
"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": "baseToken0Machines",
"type": "address[]",
"internalType": "address[]"
},
{
"name": "baseToken1Machines",
"type": "address[]",
"internalType": "address[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getDODOPoolByUser",
"inputs": [
{
"name": "user",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "machines",
"type": "address[]",
"internalType": "address[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "initOwner",
"inputs": [
{
"name": "newOwner",
"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": "updateDSPTemplate",
"inputs": [
{
"name": "_newDSPTemplate",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "NewDSP",
"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": "DSP",
"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": "RemoveDSP",
"inputs": [
{
"name": "DSP",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
}
]
Structs§
- Event with signature
NewDSP(address,address,address,address)
and selector0xbc1083a2c1c5ef31e13fb436953d22b47880cf7db279c2c5666b16083afd6b9d
. - Event with signature
OwnershipTransferPrepared(address,address)
and selector0xdcf55418cee3220104fef63f979ff3c4097ad240c0c43dcb33ce837748983e62
. - Event with signature
OwnershipTransferred(address,address)
and selector0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0
. - Event with signature
RemoveDSP(address)
and selector0x896d6f4e7068e6d194a5b84bf222d513973a0dc5ae9687123d5c61329d4489f2
. - 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
_DSP_TEMPLATE_()
and selector0x59358068
. - Container type for the return parameters of the
_DSP_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. - 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
claimOwnership()
and selector0x4e71e0c8
. - Container type for the return parameters of the
claimOwnership()
function. - Constructor`.
- Function with signature
createDODOStablePool(address,address,uint256,uint256,uint256,bool)
and selector0xcf5c2f10
. - Container type for the return parameters of the
createDODOStablePool(address,address,uint256,uint256,uint256,bool)
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
initOwner(address)
and selector0x0d009297
. - Container type for the return parameters of the
initOwner(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
updateDSPTemplate(address)
and selector0x1cdd5094
. - Container type for the return parameters of the
updateDSPTemplate(address)
function.
Enums§
- Container for all the
DodoDSPFactory
function calls. - Container for all the
DodoDSPFactory
events.