Module brontes_classifier::DodoDVMFactory
source · Expand description
Generated by the following Solidity interface…
interface DodoDVMFactory {
event NewDVM(address baseToken, address quoteToken, address creator, address dvm);
event OwnershipTransferPrepared(address indexed previousOwner, address indexed newOwner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
event RemoveDVM(address dvm);
constructor(address cloneFactory, address dvmTemplate, 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 _DVM_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 createDODOVendingMachine(address baseToken, address quoteToken, uint256 lpFeeRate, uint256 i, uint256 k, bool isOpenTWAP) external returns (address newVendingMachine);
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 updateDvmTemplate(address _newDVMTemplate) external;
}
…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [
{
"name": "cloneFactory",
"type": "address",
"internalType": "address"
},
{
"name": "dvmTemplate",
"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": "_DVM_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": "createDODOVendingMachine",
"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": "newVendingMachine",
"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": "updateDvmTemplate",
"inputs": [
{
"name": "_newDVMTemplate",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "NewDVM",
"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": "dvm",
"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": "RemoveDVM",
"inputs": [
{
"name": "dvm",
"type": "address",
"indexed": false,
"internalType": "address"
}
],
"anonymous": false
}
]
Structs§
- Event with signature
NewDVM(address,address,address,address)
and selector0xaf5c5f12a80fc937520df6fcaed66262a4cc775e0f3fceaf7a7cfe476d9a751d
. - Event with signature
OwnershipTransferPrepared(address,address)
and selector0xdcf55418cee3220104fef63f979ff3c4097ad240c0c43dcb33ce837748983e62
. - Event with signature
OwnershipTransferred(address,address)
and selector0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0
. - Event with signature
RemoveDVM(address)
and selector0x63971a172c674ce2e9da5e027e9e81a54fd3aa74a2c246a2eb473dc0aa7f5cdd
. - 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
_DVM_TEMPLATE_()
and selector0xccf0c059
. - Container type for the return parameters of the
_DVM_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
createDODOVendingMachine(address,address,uint256,uint256,uint256,bool)
and selector0xe18c40c7
. - Container type for the return parameters of the
createDODOVendingMachine(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
updateDvmTemplate(address)
and selector0xd99b8ad4
. - Container type for the return parameters of the
updateDvmTemplate(address)
function.
Enums§
- Container for all the
DodoDVMFactory
function calls. - Container for all the
DodoDVMFactory
events.